@eka-care/ekascribe-ts-sdk 1.5.79 → 1.5.80
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/audio-chunker/audio-file-manager.js +5 -5
- package/dist/shared-worker/s3-file-upload.js +60 -110
- package/package.json +3 -2
- package/dist/api/get-transaction-history.d.ts +0 -5
- package/dist/api/get-transaction-history.js +0 -28
- package/dist/api/get-voice-api-v2-config.d.ts +0 -2
- package/dist/api/get-voice-api-v2-config.js +0 -26
- package/dist/api/get-voice-api-v2-status.d.ts +0 -51
- package/dist/api/get-voice-api-v2-status.js +0 -25
- package/dist/api/get-voice-api-v3-status.d.ts +0 -51
- package/dist/api/get-voice-api-v3-status.js +0 -26
- package/dist/api/patch-transaction-status.d.ts +0 -4
- package/dist/api/patch-transaction-status.js +0 -43
- package/dist/api/post-transaction-commit.d.ts +0 -3
- package/dist/api/post-transaction-commit.js +0 -32
- package/dist/api/post-transaction-init.d.ts +0 -3
- package/dist/api/post-transaction-init.js +0 -40
- package/dist/api/post-transaction-stop.d.ts +0 -3
- package/dist/api/post-transaction-stop.js +0 -32
- package/dist/api/templates/post-convert-transaction-to-template.d.ts +0 -3
- package/dist/api/templates/post-convert-transaction-to-template.js +0 -32
- package/dist/api/transaction/get-voice-api-v2-config.d.ts +0 -2
- package/dist/api/transaction/get-voice-api-v2-config.js +0 -26
- package/dist/api/transaction/get-voice-api-v3-status-transcription.d.ts +0 -61
- package/dist/api/transaction/get-voice-api-v3-status-transcription.js +0 -26
- package/dist/audio-chunker/__tests__/audio-file-manager.test.d.ts +0 -1
- package/dist/audio-chunker/__tests__/audio-file-manager.test.js +0 -5
- package/dist/shared-worker/s3-file-upload.ts +0 -128
- package/dist/utils/search-sessions-by-patient-name.d.ts +0 -7
- package/dist/utils/search-sessions-by-patient-name.js +0 -27
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AUDIO_EXTENSION_TYPE_MAP, OUTPUT_FORMAT } from '../constants/constant';
|
|
2
|
-
import pushFileToS3 from '../aws-services/upload-file-to-s3';
|
|
3
1
|
import postCogInit from '../api/post-cog-init';
|
|
4
2
|
import { configureAWS } from '../aws-services/configure-aws';
|
|
3
|
+
import pushFileToS3 from '../aws-services/upload-file-to-s3';
|
|
4
|
+
import { AUDIO_EXTENSION_TYPE_MAP, OUTPUT_FORMAT } from '../constants/constant';
|
|
5
5
|
import { CALLBACK_TYPE, SHARED_WORKER_ACTION } from '../constants/enums';
|
|
6
|
-
import compressAudioToMp3 from '../utils/compress-mp3-audio';
|
|
7
|
-
import EkaScribeStore from '../store/store';
|
|
8
6
|
import { GET_S3_BUCKET_NAME } from '../fetch-client/helper';
|
|
7
|
+
import EkaScribeStore from '../store/store';
|
|
8
|
+
import compressAudioToMp3 from '../utils/compress-mp3-audio';
|
|
9
9
|
class AudioFileManager {
|
|
10
10
|
initialiseClassInstance() {
|
|
11
11
|
this.audioChunks = [];
|
|
@@ -134,7 +134,7 @@ class AudioFileManager {
|
|
|
134
134
|
createSharedWorkerInstance() {
|
|
135
135
|
try {
|
|
136
136
|
// new URL(relativeOrAbsolutePath, baseUrl)
|
|
137
|
-
const worker = new SharedWorker(
|
|
137
|
+
const worker = new SharedWorker('https://unpkg.com/@eka-care/ekascribe-ts-sdk@1.5.80/dist/shared-worker/s3-file-upload.js');
|
|
138
138
|
this.sharedWorkerInstance = worker;
|
|
139
139
|
const onEventCallback = EkaScribeStore.eventCallback;
|
|
140
140
|
this.sharedWorkerInstance.port.onmessage = async (event) => {
|