@eka-care/ekascribe-ts-sdk 1.4.45 → 1.4.47

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,
@@ -52,7 +52,7 @@ export async function postV1UploadAudioFiles({ audioFiles, txn_id, action, trans
52
52
  }
53
53
  return {
54
54
  status_code: SDK_STATUS_CODE.SUCCESS,
55
- message: 'Transaction initialized successfully.',
55
+ message: 'Recording uploaded successfully.',
56
56
  };
57
57
  }
58
58
  catch (error) {
@@ -60,7 +60,7 @@ export async function postV1UploadAudioFiles({ audioFiles, txn_id, action, trans
60
60
  return {
61
61
  error_code: ERROR_CODE.INTERNAL_SERVER_ERROR,
62
62
  status_code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
63
- message: `Complete upload workflow failed: ${error}`,
63
+ message: `Recording upload failed: ${error}`,
64
64
  };
65
65
  }
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "1.4.45",
3
+ "version": "1.4.47",
4
4
  "main": "dist/index.js",
5
5
  "repository": "git@github.com:eka-care/eka-js-sdk.git",
6
6
  "author": "Sanikagoyal28 <sanikagoyal9@gmail.com>",