idmission-web-sdk 2.2.7 → 2.2.9
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/components/CompositeWizard.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +1 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdentification.d.ts +1 -1
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/DocumentCapture.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +3 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/customer_identification/CustomerIdentificationCapture.d.ts +1 -1
- package/dist/components/customer_identification/CustomerIdentificationCapture.d.ts.map +1 -1
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts +1 -1
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts.map +1 -1
- package/dist/components/customer_verification/CustomerVerificationCapture.d.ts +1 -1
- package/dist/components/customer_verification/CustomerVerificationCapture.d.ts.map +1 -1
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts +1 -1
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/components/id_capture/IdCapture.d.ts +1 -1
- package/dist/components/id_capture/IdCapture.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureSuccess.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts.map +1 -1
- package/dist/components/submission/Errors.d.ts +1 -1
- package/dist/components/submission/Errors.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +2 -2
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/components/submission/types.d.ts +189 -0
- package/dist/components/submission/types.d.ts.map +1 -0
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
- package/dist/contexts/SubmissionContext.d.ts +1 -187
- package/dist/contexts/SubmissionContext.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +30 -24
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +30 -24
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +30 -24
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
package/dist/sdk2.esm.js
CHANGED
|
@@ -200,7 +200,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
200
200
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
var webSdkVersion = '2.2.
|
|
203
|
+
var webSdkVersion = '2.2.9';
|
|
204
204
|
|
|
205
205
|
function getPlatform() {
|
|
206
206
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -267,6 +267,7 @@ var SubmissionAction;
|
|
|
267
267
|
SubmissionAction["IDENTIFY"] = "IDENTIFY";
|
|
268
268
|
SubmissionAction["VALIDATE"] = "VALIDATE";
|
|
269
269
|
SubmissionAction["VERIFY"] = "VERIFY";
|
|
270
|
+
SubmissionAction["MATCH_ID_AND_FACE"] = "MATCH_ID_AND_FACE";
|
|
270
271
|
})(SubmissionAction || (SubmissionAction = {}));
|
|
271
272
|
var SubmissionStatus;
|
|
272
273
|
(function (SubmissionStatus) {
|
|
@@ -279,6 +280,7 @@ var submissionHosts = {
|
|
|
279
280
|
prod: 'https://api.idmission.com',
|
|
280
281
|
demo: 'https://apidemo.idmission.com'
|
|
281
282
|
};
|
|
283
|
+
|
|
282
284
|
function determineSubmissionHost(environment, token) {
|
|
283
285
|
var host = submissionHosts[environment];
|
|
284
286
|
if (!host) throw new Error("unrecognized SubmissionEnvironment ".concat(environment));
|
|
@@ -294,6 +296,8 @@ function determineSubmissionEndpoint(action, hasId, hasSelfie) {
|
|
|
294
296
|
return hasSelfie ? "/v4/customer/validate-id-match-face" : "/v4/customer/validate-id";
|
|
295
297
|
case SubmissionAction.VERIFY:
|
|
296
298
|
return "/v4/customer/verify";
|
|
299
|
+
case SubmissionAction.MATCH_ID_AND_FACE:
|
|
300
|
+
return "/v4/customer/match-id-face";
|
|
297
301
|
default:
|
|
298
302
|
throw new Error("unrecognized SubmissionAction ".concat(action));
|
|
299
303
|
}
|
|
@@ -15213,28 +15217,30 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15213
15217
|
silentFallback = _t === void 0 ? false : _t,
|
|
15214
15218
|
_u = _a.mergeAVStreams,
|
|
15215
15219
|
mergeAVStreams = _u === void 0 ? false : _u,
|
|
15216
|
-
_v = _a.
|
|
15217
|
-
|
|
15218
|
-
_w = _a.
|
|
15219
|
-
|
|
15220
|
-
_x = _a.
|
|
15221
|
-
|
|
15222
|
-
_y = _a.
|
|
15223
|
-
|
|
15224
|
-
_z = _a.
|
|
15225
|
-
|
|
15226
|
-
_0 = _a.
|
|
15227
|
-
|
|
15228
|
-
_1 = _a.
|
|
15229
|
-
|
|
15230
|
-
_2 = _a.
|
|
15231
|
-
|
|
15232
|
-
_3 = _a.
|
|
15233
|
-
|
|
15234
|
-
_4 = _a.
|
|
15235
|
-
|
|
15236
|
-
_5 = _a.
|
|
15237
|
-
|
|
15220
|
+
_v = _a.matchOnly,
|
|
15221
|
+
matchOnly = _v === void 0 ? false : _v,
|
|
15222
|
+
_w = _a.theme,
|
|
15223
|
+
theme = _w === void 0 ? 'default' : _w,
|
|
15224
|
+
_x = _a.assets,
|
|
15225
|
+
assets = _x === void 0 ? {} : _x,
|
|
15226
|
+
_y = _a.classNames,
|
|
15227
|
+
classNames = _y === void 0 ? {} : _y,
|
|
15228
|
+
_z = _a.colors,
|
|
15229
|
+
colors = _z === void 0 ? {} : _z,
|
|
15230
|
+
_0 = _a.verbiage,
|
|
15231
|
+
verbiage = _0 === void 0 ? {} : _0,
|
|
15232
|
+
_1 = _a.captureSignature,
|
|
15233
|
+
captureSignature = _1 === void 0 ? false : _1,
|
|
15234
|
+
_2 = _a.captureSignatureVideo,
|
|
15235
|
+
captureSignatureVideo = _2 === void 0 ? false : _2,
|
|
15236
|
+
_3 = _a.captureAdditionalDocuments,
|
|
15237
|
+
captureAdditionalDocuments = _3 === void 0 ? [] : _3,
|
|
15238
|
+
_4 = _a.geolocationEnabled,
|
|
15239
|
+
geolocationEnabled = _4 === void 0 ? true : _4,
|
|
15240
|
+
_5 = _a.geolocationRequired,
|
|
15241
|
+
geolocationRequired = _5 === void 0 ? false : _5,
|
|
15242
|
+
_6 = _a.debugMode,
|
|
15243
|
+
debugMode = _6 === void 0 ? false : _6;
|
|
15238
15244
|
useLanguage(lang);
|
|
15239
15245
|
useDebugLogging(debugMode);
|
|
15240
15246
|
var videoIdCaptureProps = useMemo(function () {
|
|
@@ -15301,7 +15307,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15301
15307
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
15302
15308
|
theme: theme
|
|
15303
15309
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
15304
|
-
action: skipIdCapture ? SubmissionAction.
|
|
15310
|
+
action: idCardForFaceMatch || !skipIdCapture ? matchOnly ? SubmissionAction.MATCH_ID_AND_FACE : SubmissionAction.VALIDATE : SubmissionAction.NONE,
|
|
15305
15311
|
submissionUrl: submissionUrl,
|
|
15306
15312
|
clientRequestID: clientRequestID,
|
|
15307
15313
|
documentServiceUrl: documentServiceUrl,
|