@eka-care/ekascribe-ts-sdk 1.5.78 → 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 (31) hide show
  1. package/dist/api/transaction/{get-voice-api-v3-status-transcription.d.ts → get-voice-api-v3-status-transcript.d.ts} +1 -1
  2. package/dist/api/transaction/{get-voice-api-v3-status-transcription.js → get-voice-api-v3-status-transcript.js} +2 -2
  3. package/dist/audio-chunker/audio-file-manager.js +5 -5
  4. package/dist/index.js +2 -2
  5. package/dist/shared-worker/s3-file-upload.js +60 -110
  6. package/package.json +3 -2
  7. package/dist/api/get-transaction-history.d.ts +0 -5
  8. package/dist/api/get-transaction-history.js +0 -28
  9. package/dist/api/get-voice-api-v2-config.d.ts +0 -2
  10. package/dist/api/get-voice-api-v2-config.js +0 -26
  11. package/dist/api/get-voice-api-v2-status.d.ts +0 -51
  12. package/dist/api/get-voice-api-v2-status.js +0 -25
  13. package/dist/api/get-voice-api-v3-status.d.ts +0 -51
  14. package/dist/api/get-voice-api-v3-status.js +0 -26
  15. package/dist/api/patch-transaction-status.d.ts +0 -4
  16. package/dist/api/patch-transaction-status.js +0 -43
  17. package/dist/api/post-transaction-commit.d.ts +0 -3
  18. package/dist/api/post-transaction-commit.js +0 -32
  19. package/dist/api/post-transaction-init.d.ts +0 -3
  20. package/dist/api/post-transaction-init.js +0 -40
  21. package/dist/api/post-transaction-stop.d.ts +0 -3
  22. package/dist/api/post-transaction-stop.js +0 -32
  23. package/dist/api/templates/post-convert-transaction-to-template.d.ts +0 -3
  24. package/dist/api/templates/post-convert-transaction-to-template.js +0 -32
  25. package/dist/api/transaction/get-voice-api-v2-config.d.ts +0 -2
  26. package/dist/api/transaction/get-voice-api-v2-config.js +0 -26
  27. package/dist/audio-chunker/__tests__/audio-file-manager.test.d.ts +0 -1
  28. package/dist/audio-chunker/__tests__/audio-file-manager.test.js +0 -5
  29. package/dist/shared-worker/s3-file-upload.ts +0 -128
  30. package/dist/utils/search-sessions-by-patient-name.d.ts +0 -7
  31. package/dist/utils/search-sessions-by-patient-name.js +0 -27
@@ -55,7 +55,7 @@ export type TGetStatusResponse = {
55
55
  status_code: number;
56
56
  message?: string;
57
57
  };
58
- export declare const getVoiceApiV3StatusTranscription: ({ txnId, }: {
58
+ export declare const getVoiceApiV3StatusTranscript: ({ txnId, }: {
59
59
  txnId: string;
60
60
  }) => Promise<TGetStatusResponse>;
61
61
  export {};
@@ -1,7 +1,7 @@
1
1
  import { SDK_STATUS_CODE } from '../../constants/constant';
2
2
  import fetchWrapper from '../../fetch-client';
3
3
  import { GET_EKA_VOICE_HOST_V3 } from '../../fetch-client/helper';
4
- export const getVoiceApiV3StatusTranscription = async ({ txnId, }) => {
4
+ export const getVoiceApiV3StatusTranscript = async ({ txnId, }) => {
5
5
  try {
6
6
  const headers = new Headers();
7
7
  headers.append('Content-Type', 'application/json');
@@ -10,7 +10,7 @@ export const getVoiceApiV3StatusTranscription = async ({ txnId, }) => {
10
10
  headers,
11
11
  };
12
12
  // Use custom timeout for this API (16 seconds instead of default 5 seconds)
13
- const getResponse = await fetchWrapper(`${GET_EKA_VOICE_HOST_V3()}/status/transcription/${txnId}`, options, 16000);
13
+ const getResponse = await fetchWrapper(`${GET_EKA_VOICE_HOST_V3()}/status/transcript/${txnId}`, options, 16000);
14
14
  const response = await getResponse.json();
15
15
  return {
16
16
  response,
@@ -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) => {
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import searchSessions, { searchSessionsByPatient, searchSessionsBySessionId, } f
33
33
  import { getConfigV2MyTemplates } from './api/config/get-voice-api-v2-config-my-templates';
34
34
  import putVoiceApiV2Config from './api/config/patch-voice-api-v2-config';
35
35
  import postConvertTranscriptionToTemplate from './api/templates/post-convert-transcription-to-template';
36
- import { getVoiceApiV3StatusTranscription } from './api/transaction/get-voice-api-v3-status-transcription';
36
+ import { getVoiceApiV3StatusTranscript } from './api/transaction/get-voice-api-v3-status-transcript';
37
37
  class EkaScribe {
38
38
  // Private constructor to prevent direct instantiation
39
39
  constructor() {
@@ -239,7 +239,7 @@ class EkaScribe {
239
239
  }
240
240
  async getOutputTranscription({ txn_id }) {
241
241
  try {
242
- const getStatusResponse = await getVoiceApiV3StatusTranscription({
242
+ const getStatusResponse = await getVoiceApiV3StatusTranscript({
243
243
  txnId: txn_id,
244
244
  });
245
245
  return getStatusResponse;