@eka-care/ekascribe-ts-sdk 3.0.31 → 3.0.33

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/index.d.ts CHANGED
@@ -17,6 +17,7 @@ import { RecordingOptions } from 'med-scribe-alliance-ts-sdk';
17
17
  import { ResolvedConfig } from 'med-scribe-alliance-ts-sdk';
18
18
  import { ScribeClient } from 'med-scribe-alliance-ts-sdk';
19
19
  import { SDKResult } from 'med-scribe-alliance-ts-sdk';
20
+ import { SessionUploadInfo } from 'med-scribe-alliance-ts-sdk';
20
21
 
21
22
  export declare enum API_STATUS {
22
23
  NOT_INITIALIZED = "na",
@@ -142,12 +143,13 @@ declare class EkaScribe {
142
143
  *
143
144
  * Client flow:
144
145
  * 1. createSession() — via sessions.createSession()
145
- * 2. processPreRecordedAudio(uploadUrl, audioFile, audioFileName) — this method
146
+ * 2. processPreRecordedAudio(upload, audioFile, audioFileName) — this method
146
147
  * 3. endSession — via sessions.endSession()
147
148
  */
148
149
  processPreRecordedAudio(request: {
149
- uploadUrl: string;
150
+ upload: SessionUploadInfo;
150
151
  audioFile: File | Blob;
152
+ audioFileName?: string;
151
153
  }): Promise<TStartRecordingResponse>;
152
154
  /** @deprecated Backward compatible */
153
155
  commitTransactionCall(): Promise<TEndRecordingResponse>;
@@ -205,7 +207,6 @@ export { EndSessionRequest }
205
207
  export { EndSessionResponse }
206
208
 
207
209
  export declare enum ERROR_CODE {
208
- MICROPHONE = "microphone",
209
210
  TXN_INIT_FAILED = "txn_init_failed",
210
211
  TXN_LIMIT_EXCEEDED = "txn_limit_exceeded",
211
212
  INTERNAL_SERVER_ERROR = "internal_server_error",
@@ -216,7 +217,8 @@ export declare enum ERROR_CODE {
216
217
  NETWORK_ERROR = "network_error",
217
218
  UNKNOWN_ERROR = "unknown_error",
218
219
  UNAUTHORIZED = "unauthorized",
219
- FORBIDDEN = "forbidden"
220
+ FORBIDDEN = "forbidden",
221
+ START_RECORDING_FAILED = "start_recording_failed"
220
222
  }
221
223
 
222
224
  declare type Gender = 'M' | 'F' | 'O';
@@ -593,7 +595,7 @@ export declare type TGetV1SessionDetailsData = {
593
595
  wid: string;
594
596
  created_at: number;
595
597
  expires_at: number;
596
- upload_url: string;
598
+ upload_url: SessionUploadInfo;
597
599
  status: string;
598
600
  user_status: 'init' | 'recording_started' | 'commit' | string;
599
601
  transfer: string;
@@ -1053,7 +1055,7 @@ export declare type TStartRecordingForExistingSessionRequest = {
1053
1055
  txn_id: string;
1054
1056
  created_at: number;
1055
1057
  expires_at: string;
1056
- upload_url: string;
1058
+ upload_url: SessionUploadInfo;
1057
1059
  business_id?: string;
1058
1060
  microphoneID?: string;
1059
1061
  };