apacuana-sdk-core 1.13.0 → 1.17.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/coverage/clover.xml +123 -121
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov-report/src/api/certs.js.html +6 -18
- package/coverage/lcov-report/src/api/faceLiveness.js.html +1 -1
- package/coverage/lcov-report/src/api/index.html +10 -10
- package/coverage/lcov-report/src/api/revocations.js.html +1 -1
- package/coverage/lcov-report/src/api/signatures.js.html +1 -1
- package/coverage/lcov-report/src/api/users.js.html +1 -1
- package/coverage/lcov-report/src/config/index.html +1 -1
- package/coverage/lcov-report/src/config/index.js.html +1 -1
- package/coverage/lcov-report/src/errors/index.html +1 -1
- package/coverage/lcov-report/src/errors/index.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.js.html +1 -1
- package/coverage/lcov-report/src/success/index.html +1 -1
- package/coverage/lcov-report/src/success/index.js.html +1 -1
- package/coverage/lcov-report/src/utils/constant.js.html +7 -4
- package/coverage/lcov-report/src/utils/helpers.js.html +36 -9
- package/coverage/lcov-report/src/utils/httpClient.js.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +12 -12
- package/coverage/lcov.info +256 -247
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/utils/constant.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/certs.js +0 -4
- package/src/utils/constant.js +3 -2
- package/src/utils/helpers.js +11 -2
package/dist/index.mjs
CHANGED
|
@@ -282,8 +282,8 @@ var STATUS_CERTIFICATE = {
|
|
|
282
282
|
request_revoque: "SOLICITUD_DE_REVOCACION",
|
|
283
283
|
certificate_another_device: "CERTIFICADO_EN_OTRO_DISPOSITIVO"};
|
|
284
284
|
var PARSE_STATUS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, STATUS_CERTIFICATE.certificate_another_device, {
|
|
285
|
-
text: "
|
|
286
|
-
descriptionText:
|
|
285
|
+
text: "Certificado generado en otro dispositivo",
|
|
286
|
+
descriptionText: "Su certificado fue generado en otro equipo. Para usarlo aquí, debe migrar el certificado o solicitar la revocación del anterior para generar uno nuevo."
|
|
287
287
|
}), STATUS_CERTIFICATE.request_cert, {
|
|
288
288
|
text: "En revisión",
|
|
289
289
|
descriptionText: "La información y documentos enviados están siendo certificados por la Autoridad de Certificación para confirmar su validez."
|
|
@@ -32933,7 +32933,11 @@ var validateOnBoardingSignerData = function validateOnBoardingSignerData(signerD
|
|
|
32933
32933
|
delete validatedSignerData.reference;
|
|
32934
32934
|
}
|
|
32935
32935
|
if (typeof File === "undefined" || !validatedSignerData.file || !(validatedSignerData.file instanceof File)) {
|
|
32936
|
-
|
|
32936
|
+
var value = validatedSignerData.file;
|
|
32937
|
+
var isRNFile = value && _typeof(value) === "object" && value.uri && value.name && value.type;
|
|
32938
|
+
if (!isRNFile) {
|
|
32939
|
+
delete validatedSignerData.file;
|
|
32940
|
+
}
|
|
32937
32941
|
}
|
|
32938
32942
|
|
|
32939
32943
|
// Valida que solo uno de los dos campos exista después de la limpieza.
|
|
@@ -33307,10 +33311,6 @@ var getCertStatus = /*#__PURE__*/function () {
|
|
|
33307
33311
|
userData = customer.data.userData;
|
|
33308
33312
|
status = helpers.getCertificateStatus(userData, isCertificateInDevice, config.integrationType);
|
|
33309
33313
|
parseStatus = PARSE_STATUS[status];
|
|
33310
|
-
console.log({
|
|
33311
|
-
status: status,
|
|
33312
|
-
parseStatus: parseStatus
|
|
33313
|
-
});
|
|
33314
33314
|
return _context4.a(2, new ApacuanaSuccess({
|
|
33315
33315
|
status: parseStatus
|
|
33316
33316
|
}));
|