@eka-care/ekascribe-ts-sdk 1.5.59 → 1.5.62
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/config/patch-voice-api-v2-config.d.ts +2 -2
- package/dist/api/config/patch-voice-api-v2-config.js +3 -3
- 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/index.js +2 -2
- 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 { TPatchVoiceApiV2ConfigRequest } from '../../constants/types';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const putVoiceApiV2Config: (request: TPatchVoiceApiV2ConfigRequest) => Promise<any>;
|
|
3
|
+
export default putVoiceApiV2Config;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
const
|
|
4
|
+
const putVoiceApiV2Config = async (request) => {
|
|
5
5
|
try {
|
|
6
6
|
const options = {
|
|
7
|
-
method: '
|
|
7
|
+
method: 'PUT',
|
|
8
8
|
headers: {
|
|
9
9
|
'Content-Type': 'application/json',
|
|
10
10
|
},
|
|
@@ -25,4 +25,4 @@ const patchVoiceApiV2Config = async (request) => {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
export default
|
|
28
|
+
export default putVoiceApiV2Config;
|
|
@@ -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;
|
package/dist/index.js
CHANGED
|
@@ -25,13 +25,13 @@ import getV1TemplateSections from './api/template-sections/get-v1-template-secti
|
|
|
25
25
|
import postV1TemplateSection from './api/template-sections/post-v1-template-section';
|
|
26
26
|
import patchV1TemplateSection from './api/template-sections/patch-v1-template-section';
|
|
27
27
|
import deleteV1TemplateSection from './api/template-sections/delete-v1-template-section';
|
|
28
|
-
import patchVoiceApiV2Config from './api/config/patch-voice-api-v2-config';
|
|
29
28
|
import cookV1MediaAiCreateTemplate from './api/templates/cook-v1-medai-ai-create-template';
|
|
30
29
|
import postV1ConvertToTemplate from './api/templates/post-transaction-convert-to-template';
|
|
31
30
|
import { postV1UploadAudioFiles } from './main/upload-full-audio-with-presigned-url';
|
|
32
31
|
import { patchVoiceApiV3Status } from './api/transaction/patch-voice-api-v3-status';
|
|
33
32
|
import searchSessions, { searchSessionsByPatient, searchSessionsBySessionId, } from './utils/search-past-sessions';
|
|
34
33
|
import { getConfigV2MyTemplates } from './api/config/get-voice-api-v2-config-my-templates';
|
|
34
|
+
import putVoiceApiV2Config from './api/config/patch-voice-api-v2-config';
|
|
35
35
|
class EkaScribe {
|
|
36
36
|
// Private constructor to prevent direct instantiation
|
|
37
37
|
constructor() {
|
|
@@ -313,7 +313,7 @@ class EkaScribe {
|
|
|
313
313
|
return templatesResponse;
|
|
314
314
|
}
|
|
315
315
|
async updateConfig(request) {
|
|
316
|
-
const configResponse = await
|
|
316
|
+
const configResponse = await putVoiceApiV2Config(request);
|
|
317
317
|
return configResponse;
|
|
318
318
|
}
|
|
319
319
|
// Template Section SDK methods
|
|
@@ -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,
|