uqudosdk-web 3.1.5 → 3.2.1
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 +12 -0
- package/index.d.ts +10 -4
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 3.2.1
|
|
2
|
+
|
|
3
|
+
- Added new document type USA_DL (USA Driving license)
|
|
4
|
+
|
|
5
|
+
## 3.2.0
|
|
6
|
+
|
|
7
|
+
- Added new document type COD_VOTER_ID for Democratic Republic of the Congo driving license
|
|
8
|
+
- Added new document type OMN_DL for Oman driving license
|
|
9
|
+
- Added new document type OMN_VL for Oman vehicle license
|
|
10
|
+
- Improved text definition for the upload and scan (taking picture) screen where now it is possible to define an array when for example you on-board two documents in the same session and you want to have a separate description for every document. The order is based on the order defined in the scan configuration for the enrollment flow.
|
|
11
|
+
- From this version on in the SDK result all the fields containing a date will have an additional field with the same name plus the suffix "Formatted" that will contain the same date formatted in ISO-8601 format, e.g. '2011-12-03'
|
|
12
|
+
|
|
1
13
|
## 3.1.5
|
|
2
14
|
|
|
3
15
|
- Added new document type GBR_ID (UK Resident ID)
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// ---------- errors --------- //
|
|
2
2
|
|
|
3
|
+
export type CanBeArray<T> = T | T[];
|
|
4
|
+
|
|
3
5
|
export declare const isErrorCode: (code: unknown) => code is ErrorCode;
|
|
4
6
|
|
|
5
7
|
export declare class OperationError extends Error {
|
|
@@ -98,6 +100,10 @@ export enum DocumentType {
|
|
|
98
100
|
TUR_ID = "TUR_ID",
|
|
99
101
|
COD_DL = "COD_DL",
|
|
100
102
|
GBR_ID = "GBR_ID",
|
|
103
|
+
COD_VOTER_ID = "COD_VOTER_ID",
|
|
104
|
+
OMN_VL = "OMN_VL",
|
|
105
|
+
OMN_DL = "OMN_DL",
|
|
106
|
+
USA_DL = "USA_DL",
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
export enum BackgroundCheckType {
|
|
@@ -123,7 +129,7 @@ export interface ITextsArg {
|
|
|
123
129
|
yesButtonText?: string;
|
|
124
130
|
noButtonText?: string;
|
|
125
131
|
};
|
|
126
|
-
upload?: {
|
|
132
|
+
upload?: CanBeArray<{
|
|
127
133
|
title?: string;
|
|
128
134
|
front?: {
|
|
129
135
|
description?: string;
|
|
@@ -136,7 +142,7 @@ export interface ITextsArg {
|
|
|
136
142
|
acceptedFilesDescription?: string;
|
|
137
143
|
buttonText?: string;
|
|
138
144
|
tipDescription?: string;
|
|
139
|
-
}
|
|
145
|
+
}>;
|
|
140
146
|
backgroundCheck?: {
|
|
141
147
|
title?: string;
|
|
142
148
|
description?: string;
|
|
@@ -155,7 +161,7 @@ export interface ITextsArg {
|
|
|
155
161
|
description?: string;
|
|
156
162
|
headText?: string;
|
|
157
163
|
};
|
|
158
|
-
scan?: {
|
|
164
|
+
scan?: CanBeArray<{
|
|
159
165
|
titleFrontSide?: string;
|
|
160
166
|
titleBackSide?: string;
|
|
161
167
|
rescanButtonText?: string;
|
|
@@ -164,7 +170,7 @@ export interface ITextsArg {
|
|
|
164
170
|
tipDescription?: string;
|
|
165
171
|
tipDescription2?: string;
|
|
166
172
|
description?: string;
|
|
167
|
-
}
|
|
173
|
+
}>;
|
|
168
174
|
documentTypes?: Record<string | DocumentType, string>;
|
|
169
175
|
errors?: Record<ErrorDisplayCode, ITextErrorDisplay>;
|
|
170
176
|
}
|