@eka-care/ekascribe-ts-sdk 1.5.60 → 1.5.63
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/api/transaction/get-voice-api-v3-status.d.ts +1 -0
- package/dist/api/transaction/post-transaction-init.d.ts +1 -1
- package/dist/api/transaction/post-transaction-init.js +2 -1
- package/dist/constants/types.d.ts +2 -0
- package/dist/main/upload-full-audio-with-presigned-url.d.ts +1 -1
- package/dist/main/upload-full-audio-with-presigned-url.js +2 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TPostTransactionInitRequest, TPostTransactionResponse } from '../../constants/types';
|
|
2
|
-
declare function postTransactionInit({ mode, txn_id, s3Url, input_language, output_format_template, model_training_consent, auto_download, transfer, system_info, patient_details, model_type, version, flavour, batch_s3_url, audio_file_names, }: TPostTransactionInitRequest): Promise<TPostTransactionResponse>;
|
|
2
|
+
declare function postTransactionInit({ mode, txn_id, s3Url, input_language, output_format_template, model_training_consent, auto_download, transfer, system_info, patient_details, model_type, version, flavour, batch_s3_url, audio_file_names, output_language, }: TPostTransactionInitRequest): Promise<TPostTransactionResponse>;
|
|
3
3
|
export default postTransactionInit;
|
|
@@ -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_V2 } from '../../fetch-client/helper';
|
|
4
|
-
async function postTransactionInit({ mode, txn_id, s3Url, input_language, output_format_template, model_training_consent, auto_download, transfer, system_info, patient_details, model_type, version, flavour, batch_s3_url, audio_file_names, }) {
|
|
4
|
+
async function postTransactionInit({ mode, txn_id, s3Url, input_language, output_format_template, model_training_consent, auto_download, transfer, system_info, patient_details, model_type, version, flavour, batch_s3_url, audio_file_names, output_language, }) {
|
|
5
5
|
try {
|
|
6
6
|
const headers = new Headers();
|
|
7
7
|
headers.append('Content-Type', 'application/json');
|
|
@@ -12,6 +12,7 @@ async function postTransactionInit({ mode, txn_id, s3Url, input_language, output
|
|
|
12
12
|
mode,
|
|
13
13
|
s3_url: s3Url,
|
|
14
14
|
input_language,
|
|
15
|
+
output_language,
|
|
15
16
|
output_format_template,
|
|
16
17
|
model_training_consent,
|
|
17
18
|
auto_download,
|
|
@@ -55,6 +55,7 @@ export type TConfigSettings = {
|
|
|
55
55
|
export type TStartRecordingRequest = {
|
|
56
56
|
mode: string;
|
|
57
57
|
input_language: string[];
|
|
58
|
+
output_language: string;
|
|
58
59
|
output_format_template: {
|
|
59
60
|
template_id: string;
|
|
60
61
|
template_name?: string;
|
|
@@ -120,6 +121,7 @@ export type TPostTransactionInitRequest = {
|
|
|
120
121
|
s3Url?: string;
|
|
121
122
|
txn_id: string;
|
|
122
123
|
input_language: string[];
|
|
124
|
+
output_language: string;
|
|
123
125
|
output_format_template: {
|
|
124
126
|
template_id: string;
|
|
125
127
|
template_name?: string;
|
|
@@ -5,4 +5,4 @@ export type TFullAudioUploadResponse = {
|
|
|
5
5
|
status_code: number;
|
|
6
6
|
message: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function postV1UploadAudioFiles({ audioFiles, audioFileNames, txn_id, action, transfer, mode, input_language, output_format_template, model_training_consent, auto_download, system_info, patient_details, model_type, version, flavour, }: TPostV1UploadAudioFilesRequest): Promise<TFullAudioUploadResponse>;
|
|
8
|
+
export declare function postV1UploadAudioFiles({ audioFiles, audioFileNames, txn_id, action, transfer, mode, input_language, output_language, output_format_template, model_training_consent, auto_download, system_info, patient_details, model_type, version, flavour, }: TPostV1UploadAudioFilesRequest): Promise<TFullAudioUploadResponse>;
|
|
@@ -3,7 +3,7 @@ import postTransactionInit from '../api/transaction/post-transaction-init';
|
|
|
3
3
|
import uploadFilesWithPresignedUrl from '../api/upload-audio-with-presigned-url';
|
|
4
4
|
import { SDK_STATUS_CODE } from '../constants/constant';
|
|
5
5
|
import { ERROR_CODE } from '../constants/enums';
|
|
6
|
-
export async function postV1UploadAudioFiles({ audioFiles, audioFileNames, txn_id, action, transfer, mode, input_language, output_format_template, model_training_consent, auto_download, system_info, patient_details, model_type, version, flavour, }) {
|
|
6
|
+
export async function postV1UploadAudioFiles({ audioFiles, audioFileNames, txn_id, action, transfer, mode, input_language, output_language, output_format_template, model_training_consent, auto_download, system_info, patient_details, model_type, version, flavour, }) {
|
|
7
7
|
try {
|
|
8
8
|
// Step 1: Get presigned URL
|
|
9
9
|
const presignedUrlResponse = await postV1FileUpload({ txn_id, action });
|
|
@@ -32,6 +32,7 @@ export async function postV1UploadAudioFiles({ audioFiles, audioFileNames, txn_i
|
|
|
32
32
|
mode,
|
|
33
33
|
txn_id,
|
|
34
34
|
input_language,
|
|
35
|
+
output_language,
|
|
35
36
|
output_format_template,
|
|
36
37
|
model_training_consent,
|
|
37
38
|
auto_download,
|