@eka-care/ekascribe-ts-sdk 1.5.59 → 1.5.60
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.
|
@@ -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;
|
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
|