@eka-care/ekascribe-ts-sdk 2.1.50 → 2.1.51
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 +1 -0
- package/dist/index.mjs +20 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -30080,12 +30080,13 @@ async function postTransactionInit({
|
|
|
30080
30080
|
batch_s3_url: e,
|
|
30081
30081
|
audio_file_names: r,
|
|
30082
30082
|
output_language: o,
|
|
30083
|
-
additional_data: h
|
|
30083
|
+
additional_data: h,
|
|
30084
|
+
encounter_id: b
|
|
30084
30085
|
}) {
|
|
30085
30086
|
try {
|
|
30086
|
-
const
|
|
30087
|
-
|
|
30088
|
-
const
|
|
30087
|
+
const g = new Headers();
|
|
30088
|
+
g.append("Content-Type", "application/json");
|
|
30089
|
+
const y = {
|
|
30089
30090
|
mode: s,
|
|
30090
30091
|
s3_url: i,
|
|
30091
30092
|
input_language: u,
|
|
@@ -30100,24 +30101,25 @@ async function postTransactionInit({
|
|
|
30100
30101
|
version: t,
|
|
30101
30102
|
batch_s3_url: e,
|
|
30102
30103
|
additional_data: h,
|
|
30103
|
-
...r ? { client_generated_files: r } : {}
|
|
30104
|
-
|
|
30104
|
+
...r ? { client_generated_files: r } : {},
|
|
30105
|
+
...b ? { encounter_id: b } : {}
|
|
30106
|
+
}, m = {
|
|
30105
30107
|
method: "POST",
|
|
30106
|
-
headers:
|
|
30107
|
-
body: JSON.stringify(
|
|
30108
|
-
},
|
|
30108
|
+
headers: g,
|
|
30109
|
+
body: JSON.stringify(y)
|
|
30110
|
+
}, S = await fetchWrapper(
|
|
30109
30111
|
`${GET_EKA_VOICE_HOST_V2()}/transaction/init/${n}`,
|
|
30110
|
-
|
|
30112
|
+
m
|
|
30111
30113
|
);
|
|
30112
|
-
let
|
|
30113
|
-
return
|
|
30114
|
-
...
|
|
30115
|
-
code:
|
|
30116
|
-
},
|
|
30117
|
-
} catch (
|
|
30118
|
-
return console.error("%c Line:52 🥖 postTransactionInit -> error", "color:#f5ce50",
|
|
30114
|
+
let T = await S.json();
|
|
30115
|
+
return T = {
|
|
30116
|
+
...T,
|
|
30117
|
+
code: S.status
|
|
30118
|
+
}, T;
|
|
30119
|
+
} catch (g) {
|
|
30120
|
+
return console.error("%c Line:52 🥖 postTransactionInit -> error", "color:#f5ce50", g), {
|
|
30119
30121
|
code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
|
|
30120
|
-
message: `Something went wrong! ${
|
|
30122
|
+
message: `Something went wrong! ${g}`
|
|
30121
30123
|
};
|
|
30122
30124
|
}
|
|
30123
30125
|
}
|