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