@eka-care/ekascribe-ts-sdk 1.4.44 → 1.4.46
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.
|
@@ -47,6 +47,7 @@ const endVoiceRecording = async () => {
|
|
|
47
47
|
await fileManagerInstance.waitForAllUploads();
|
|
48
48
|
const audioInfo = fileManagerInstance?.audioChunks;
|
|
49
49
|
const audioFiles = audioInfo.map((audio) => audio.fileName);
|
|
50
|
+
console.log(audioInfo, 'audio files in end recording - SDK');
|
|
50
51
|
// call stop txn api
|
|
51
52
|
if (EkaScribeStore.sessionStatus[txnID].api?.status === 'init') {
|
|
52
53
|
const { message: txnStopMsg, code: txnStopStatusCode } = await postTransactionStop({
|
|
@@ -93,6 +94,7 @@ const endVoiceRecording = async () => {
|
|
|
93
94
|
total_audio_files: audioFiles,
|
|
94
95
|
};
|
|
95
96
|
}
|
|
97
|
+
console.log(audioFiles, 'audio files in commit api call, end recording - SDK');
|
|
96
98
|
// call commit transaction api
|
|
97
99
|
if (EkaScribeStore.sessionStatus[txnID].api?.status === 'stop' ||
|
|
98
100
|
EkaScribeStore.sessionStatus[txnID].api?.status === 'commit') {
|
|
@@ -11,6 +11,7 @@ const retryUploadFailedFiles = async ({ force_commit, }) => {
|
|
|
11
11
|
const failedFiles = (await fileManagerInstance.retryFailedUploads()) || [];
|
|
12
12
|
const audioInfo = fileManagerInstance?.audioChunks;
|
|
13
13
|
const audioFiles = audioInfo.map((audio) => audio.fileName);
|
|
14
|
+
console.log(failedFiles, 'failed files in retry upload recording - SDK');
|
|
14
15
|
if (failedFiles.length > 0 && !force_commit) {
|
|
15
16
|
return {
|
|
16
17
|
error_code: ERROR_CODE.AUDIO_UPLOAD_FAILED,
|