@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.
Files changed (30) hide show
  1. package/dist/audio-chunker/audio-file-manager.js +5 -5
  2. package/dist/shared-worker/s3-file-upload.js +60 -110
  3. package/package.json +3 -2
  4. package/dist/api/get-transaction-history.d.ts +0 -5
  5. package/dist/api/get-transaction-history.js +0 -28
  6. package/dist/api/get-voice-api-v2-config.d.ts +0 -2
  7. package/dist/api/get-voice-api-v2-config.js +0 -26
  8. package/dist/api/get-voice-api-v2-status.d.ts +0 -51
  9. package/dist/api/get-voice-api-v2-status.js +0 -25
  10. package/dist/api/get-voice-api-v3-status.d.ts +0 -51
  11. package/dist/api/get-voice-api-v3-status.js +0 -26
  12. package/dist/api/patch-transaction-status.d.ts +0 -4
  13. package/dist/api/patch-transaction-status.js +0 -43
  14. package/dist/api/post-transaction-commit.d.ts +0 -3
  15. package/dist/api/post-transaction-commit.js +0 -32
  16. package/dist/api/post-transaction-init.d.ts +0 -3
  17. package/dist/api/post-transaction-init.js +0 -40
  18. package/dist/api/post-transaction-stop.d.ts +0 -3
  19. package/dist/api/post-transaction-stop.js +0 -32
  20. package/dist/api/templates/post-convert-transaction-to-template.d.ts +0 -3
  21. package/dist/api/templates/post-convert-transaction-to-template.js +0 -32
  22. package/dist/api/transaction/get-voice-api-v2-config.d.ts +0 -2
  23. package/dist/api/transaction/get-voice-api-v2-config.js +0 -26
  24. package/dist/api/transaction/get-voice-api-v3-status-transcription.d.ts +0 -61
  25. package/dist/api/transaction/get-voice-api-v3-status-transcription.js +0 -26
  26. package/dist/audio-chunker/__tests__/audio-file-manager.test.d.ts +0 -1
  27. package/dist/audio-chunker/__tests__/audio-file-manager.test.js +0 -5
  28. package/dist/shared-worker/s3-file-upload.ts +0 -128
  29. package/dist/utils/search-sessions-by-patient-name.d.ts +0 -7
  30. 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(new URL('../shared-worker/s3-file-upload.js', import.meta.url));
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) => {