uqudosdk-web 3.6.0 → 3.6.2

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,14 +1,25 @@
1
+ ## 3.6.2
2
+
3
+ - show popup error when the user upload document larger than 5mb
4
+
5
+ ## 3.6.1
6
+
7
+ - Enhanced SDK initialization to ensure that any resources from a previous SDK instance, such as the camera stream, are properly released. Additionally, a new method, `dispose()`, has been added to the `UqudoSdk` class, allowing you to forcibly release any resources related to the SDK.
8
+ - Added support for a new document type: UAE_PASSPORT_DIGITAL, representing the digital version of the UAE passport. To accept this type, configure it as a separate document in your Enrollment Builder Configuration. For manual upload, we support the original 6-page PDF version and automatically extract the document from the third page.
9
+
1
10
  ## 3.6.0
11
+
2
12
  - Introduced support for Qatar Vehicle License.
3
13
  - Enhanced the facial recognition step to provide a smoother experience for end users.
4
14
  - 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.
15
+ - Introduced support for the Analytics functionality. For more details, visit <https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/analytics>.
6
16
 
7
17
  ## 3.5.0
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.
18
+
19
+ - 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>.
9
20
  - Enhanced the facial recognition layout for mobile and tablet. Fixed the oval's position, which sometimes misled users into placing their faces incorrectly.
10
21
  - Changed the image format to JPEG for the document photo-taking step.
11
- - Added virtual camera detection. If a virtual camera is detected, the SDK terminates the session with the error code MEDIA_VIRTUAL_CAMERA_DETECTED. For more details, see the operation error documentation https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/operation-error.
22
+ - Added virtual camera detection. If a virtual camera is detected, the SDK terminates the session with the error code MEDIA_VIRTUAL_CAMERA_DETECTED. For more details, see the operation error documentation <https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/operation-error>.
12
23
 
13
24
  ## 3.4.2
14
25
 
package/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export declare class UqudoSdk {
23
23
  faceSession(
24
24
  configProcess: IFaceSessionConfig
25
25
  ): Promise<ReturnFaceSessionType>;
26
+ dispose(): Promise<void>;
26
27
  }
27
28
 
28
29
  declare class UqudoSdkFactory {
@@ -116,6 +117,7 @@ export enum DocumentType {
116
117
  MRZ = "MRZ",
117
118
  UAE_ID_DIGITAL = "UAE_ID_DIGITAL",
118
119
  QAT_VL = "QAT_VL",
120
+ UAE_PASSPORT_DIGITAL = "UAE_PASSPORT_DIGITAL",
119
121
  }
120
122
 
121
123
  export enum BackgroundCheckType {
@@ -196,7 +198,7 @@ export interface ITextsArg {
196
198
  description?: string;
197
199
  }>;
198
200
  documentTypes?: Record<string | DocumentType, string>;
199
- errors?: Record<ErrorDisplayCode, ITextErrorDisplay>;
201
+ errors?: Record<string | ErrorDisplayCode, ITextErrorDisplay>;
200
202
  }
201
203
 
202
204
  // ---------- texts type --------- //
@@ -223,7 +225,7 @@ export type IObservableFunctionsType<R = IResultInfo, E = OperationError> = {
223
225
  onSuccess?: (result: R) => void;
224
226
  onError?: (error: E) => void;
225
227
  onFinally?: () => void;
226
- onTrace?: TOnTrace;
228
+ onTrace?: (trace: ITrace) => void;
227
229
  };
228
230
 
229
231
  export type IResource = {
@@ -238,6 +240,7 @@ export type IConfigProcess = IResource & {
238
240
  // ---------- uqudo sdk type --------- //
239
241
 
240
242
  export type IUqudoSdkConfig = IResource & {
243
+ debug?: boolean;
241
244
  baseURL?: string;
242
245
  accessToken: string;
243
246
  nonce?: string;