@eka-care/ekascribe-ts-sdk 2.1.14 → 2.1.15
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 +2 -1
- package/dist/index.mjs +21 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ declare class EkaScribe {
|
|
|
90
90
|
createTemplateSection(templateSection: TPostV1TemplateSectionRequest): Promise<TPostV1TemplateSectionResponse>;
|
|
91
91
|
updateTemplateSection(templateSection: TPostV1TemplateSectionRequest): Promise<TPostV1TemplateSectionResponse>;
|
|
92
92
|
deleteTemplateSection(section_id: string): Promise<TPostV1TemplateSectionResponse>;
|
|
93
|
-
postTransactionConvertToTemplate(
|
|
93
|
+
postTransactionConvertToTemplate(request: TPostV1ConvertToTemplateRequest): Promise<TPostV1ConvertToTemplateResponse>;
|
|
94
94
|
convertTranscriptionToTemplate(request: TPostV1ConvertToTemplateRequest): Promise<TPostV1ConvertToTemplateResponse>;
|
|
95
95
|
searchPastSessions(request: TSearchSessionsRequest): Promise<TSessionHistoryData[]>;
|
|
96
96
|
searchSessionsByPatientName(request: TSearchSessionsByPatientRequest): Promise<TSessionHistoryData[]>;
|
|
@@ -533,6 +533,7 @@ declare type TPostV1ConvertToTemplateRequest = {
|
|
|
533
533
|
txn_id: string;
|
|
534
534
|
template_id: string;
|
|
535
535
|
transcript?: string;
|
|
536
|
+
target_language?: string;
|
|
536
537
|
};
|
|
537
538
|
|
|
538
539
|
declare type TPostV1ConvertToTemplateResponse = {
|
package/dist/index.mjs
CHANGED
|
@@ -53901,29 +53901,32 @@ async function cookV1MediaAiCreateTemplate(i) {
|
|
|
53901
53901
|
}
|
|
53902
53902
|
async function postV1ConvertToTemplate({
|
|
53903
53903
|
txn_id: i,
|
|
53904
|
-
template_id: r
|
|
53904
|
+
template_id: r,
|
|
53905
|
+
target_language: s
|
|
53905
53906
|
}) {
|
|
53906
53907
|
try {
|
|
53907
|
-
const
|
|
53908
|
-
|
|
53909
|
-
const
|
|
53908
|
+
const n = new Headers();
|
|
53909
|
+
n.append("Content-Type", "application/json");
|
|
53910
|
+
const a = {
|
|
53910
53911
|
method: "POST",
|
|
53911
|
-
headers:
|
|
53912
|
-
body: JSON.stringify({
|
|
53913
|
-
|
|
53912
|
+
headers: n,
|
|
53913
|
+
body: JSON.stringify({
|
|
53914
|
+
...s && { target_language: s }
|
|
53915
|
+
})
|
|
53916
|
+
}, c = await fetchWrapper(
|
|
53914
53917
|
`${GET_EKA_VOICE_HOST_V1()}/transaction/${i}/convert-to-template/${r}`,
|
|
53915
|
-
|
|
53918
|
+
a,
|
|
53916
53919
|
6e4
|
|
53917
53920
|
);
|
|
53918
|
-
let
|
|
53919
|
-
return
|
|
53920
|
-
...
|
|
53921
|
-
code:
|
|
53922
|
-
},
|
|
53923
|
-
} catch (
|
|
53924
|
-
return console.error("%c postV1ConvertToTemplate -> error", "color:#f5ce50",
|
|
53921
|
+
let u = await c.json();
|
|
53922
|
+
return u = {
|
|
53923
|
+
...u,
|
|
53924
|
+
code: c.status
|
|
53925
|
+
}, u;
|
|
53926
|
+
} catch (n) {
|
|
53927
|
+
return console.error("%c postV1ConvertToTemplate -> error", "color:#f5ce50", n), {
|
|
53925
53928
|
code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
|
|
53926
|
-
message: `Something went wrong! ${
|
|
53929
|
+
message: `Something went wrong! ${n}`
|
|
53927
53930
|
};
|
|
53928
53931
|
}
|
|
53929
53932
|
}
|
|
@@ -55246,8 +55249,8 @@ const DEFAULT_HEADER_IMAGE = "https://cdn.eka.care/vagus/cmlf0ip4a00000td1dmth2w
|
|
|
55246
55249
|
async deleteTemplateSection(r) {
|
|
55247
55250
|
return await deleteV1TemplateSection(r);
|
|
55248
55251
|
}
|
|
55249
|
-
async postTransactionConvertToTemplate(
|
|
55250
|
-
return await postV1ConvertToTemplate(
|
|
55252
|
+
async postTransactionConvertToTemplate(r) {
|
|
55253
|
+
return await postV1ConvertToTemplate(r);
|
|
55251
55254
|
}
|
|
55252
55255
|
async convertTranscriptionToTemplate(r) {
|
|
55253
55256
|
return await postConvertTranscriptionToTemplate(r);
|