datakeen-session-react 1.1.202-dev.1 → 1.1.202-rc.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/dist/cjs/components/document-collection/DocumentCollection.js +2 -2
- package/dist/cjs/components/id-check/Photo.js +36 -42
- package/dist/cjs/components/jdi/JDIDocumentSelection.js +0 -3
- package/dist/cjs/components/jdi/JDIDocumentUpload.js +2 -5
- package/dist/cjs/components/session/DocumentCheck.js +23 -23
- package/dist/cjs/i18n/en.json.js +0 -11
- package/dist/cjs/i18n/es.json.js +0 -11
- package/dist/cjs/i18n/fr.json.js +0 -11
- package/dist/cjs/index.css.js +1 -1
- package/dist/cjs/services/cameraService.js +23 -44
- package/dist/cjs/services/sessionService.js +6 -16
- package/dist/esm/components/document-collection/DocumentCollection.js +2 -2
- package/dist/esm/components/id-check/Photo.js +36 -42
- package/dist/esm/components/jdi/JDIDocumentSelection.js +0 -3
- package/dist/esm/components/jdi/JDIDocumentUpload.js +2 -5
- package/dist/esm/components/session/DocumentCheck.js +23 -23
- package/dist/esm/i18n/en.json.js +0 -11
- package/dist/esm/i18n/es.json.js +0 -11
- package/dist/esm/i18n/fr.json.js +0 -11
- package/dist/esm/index.css.js +1 -1
- package/dist/esm/services/cameraService.js +23 -44
- package/dist/esm/services/sessionService.js +7 -16
- package/package.json +1 -1
- package/dist/cjs/utils/cameraResolution.js +0 -12
- package/dist/esm/utils/cameraResolution.js +0 -9
|
@@ -3,21 +3,12 @@ import { apiService } from './api.js';
|
|
|
3
3
|
import { logStatusModified } from './auditTrailService.js';
|
|
4
4
|
import { clearSessionMemory } from './sessionMemoryStore.js';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
case 0: return [4 /*yield*/, apiService.patch("/session/sdk/".concat(sessionId), { captureDiagnostics: (_a = {}, _a[nodeId] = diag, _a) })];
|
|
13
|
-
case 1:
|
|
14
|
-
_b.sent();
|
|
15
|
-
return [2 /*return*/];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
/** Fetches session data by ID from the Datakeen backend. */
|
|
6
|
+
/**
|
|
7
|
+
* Fetches session data by ID from the Datakeen backend
|
|
8
|
+
*
|
|
9
|
+
* @param sessionId - The unique identifier of the session
|
|
10
|
+
* @returns The session data
|
|
11
|
+
*/
|
|
21
12
|
var fetchSessionById = function (sessionId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
22
13
|
var response, error_1;
|
|
23
14
|
return __generator(this, function (_a) {
|
|
@@ -515,4 +506,4 @@ function checkComplementaryMandate(sessionId, nodeId) {
|
|
|
515
506
|
return request;
|
|
516
507
|
}
|
|
517
508
|
|
|
518
|
-
export { checkComplementaryMandate, clearSessionSensitiveData, fetchSessionById, findOutgoingEdge, getNextStepIndex, getOrderedJourneySteps, getRunPrefillData, hasOutgoingEdgeForHandle, isSessionExpired, reconstructHistoryToStep,
|
|
509
|
+
export { checkComplementaryMandate, clearSessionSensitiveData, fetchSessionById, findOutgoingEdge, getNextStepIndex, getOrderedJourneySteps, getRunPrefillData, hasOutgoingEdgeForHandle, isSessionExpired, reconstructHistoryToStep, reportSelfieFailure, resetNfcScan, sendClientInfo, skipNfcWithReason, storeDocumentOptions, updateSessionContactInfo, updateSessionCurrentStep, updateSessionStatus, updateSessionUserInput };
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var HD_MIN = { long: 1280, short: 720 };
|
|
4
|
-
function isBelowHd(settings) {
|
|
5
|
-
var _a = settings !== null && settings !== void 0 ? settings : {}, width = _a.width, height = _a.height;
|
|
6
|
-
if (!width || !height)
|
|
7
|
-
return false;
|
|
8
|
-
return Math.max(width, height) < HD_MIN.long || Math.min(width, height) < HD_MIN.short;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
exports.HD_MIN = HD_MIN;
|
|
12
|
-
exports.isBelowHd = isBelowHd;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var HD_MIN = { long: 1280, short: 720 };
|
|
2
|
-
function isBelowHd(settings) {
|
|
3
|
-
var _a = settings !== null && settings !== void 0 ? settings : {}, width = _a.width, height = _a.height;
|
|
4
|
-
if (!width || !height)
|
|
5
|
-
return false;
|
|
6
|
-
return Math.max(width, height) < HD_MIN.long || Math.min(width, height) < HD_MIN.short;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { HD_MIN, isBelowHd };
|