@eka-care/ekascribe-ts-sdk 2.1.34 → 2.1.36
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 +4 -1
- package/dist/index.mjs +12 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -30879,7 +30879,7 @@ const decodeApiResponse = (s) => {
|
|
|
30879
30879
|
a = 0;
|
|
30880
30880
|
await new Promise((S) => setTimeout(S, 1e3));
|
|
30881
30881
|
const m = [];
|
|
30882
|
-
return i && m.push(`template_id=${i}`), c && m.push(`document_id=${c}`), l && m.push("
|
|
30882
|
+
return i && m.push(`template_id=${i}`), c && m.push(`document_id=${c}`), l && m.push("dlp=true"), t(m.join("&"));
|
|
30883
30883
|
}
|
|
30884
30884
|
return d(
|
|
30885
30885
|
b,
|
|
@@ -30896,7 +30896,7 @@ const decodeApiResponse = (s) => {
|
|
|
30896
30896
|
);
|
|
30897
30897
|
}
|
|
30898
30898
|
}, e = [];
|
|
30899
|
-
i && e.push(`template_id=${i}`), c && e.push(`document_id=${c}`), l && e.push("
|
|
30899
|
+
i && e.push(`template_id=${i}`), c && e.push(`document_id=${c}`), l && e.push("dlp=true");
|
|
30900
30900
|
const r = e.join("&");
|
|
30901
30901
|
return console.log(r, "query params"), t(r);
|
|
30902
30902
|
} catch (_) {
|
|
@@ -31624,7 +31624,10 @@ const REQUEST_TIMEOUT_MS = 1e4, fetchChunkTranscript = async (s, n) => {
|
|
|
31624
31624
|
return { success: !1, error: "network_error" };
|
|
31625
31625
|
}
|
|
31626
31626
|
};
|
|
31627
|
-
async function patchSessionContext(
|
|
31627
|
+
async function patchSessionContext({
|
|
31628
|
+
txn_id: s,
|
|
31629
|
+
context: n
|
|
31630
|
+
}) {
|
|
31628
31631
|
try {
|
|
31629
31632
|
const i = new Headers();
|
|
31630
31633
|
i.append("Content-Type", "application/json");
|
|
@@ -31648,7 +31651,10 @@ async function patchSessionContext(s, n) {
|
|
|
31648
31651
|
};
|
|
31649
31652
|
}
|
|
31650
31653
|
}
|
|
31651
|
-
async function deleteSessionContext(
|
|
31654
|
+
async function deleteSessionContext({
|
|
31655
|
+
txn_id: s,
|
|
31656
|
+
context: n
|
|
31657
|
+
}) {
|
|
31652
31658
|
try {
|
|
31653
31659
|
const i = new Headers();
|
|
31654
31660
|
i.append("Content-Type", "application/json");
|
|
@@ -32033,10 +32039,10 @@ const _n = class _n {
|
|
|
32033
32039
|
return fetchChunkTranscript(n, i);
|
|
32034
32040
|
}
|
|
32035
32041
|
async addSessionContext({ txn_id: n, context: i }) {
|
|
32036
|
-
return await patchSessionContext(n, i);
|
|
32042
|
+
return await patchSessionContext({ txn_id: n, context: i });
|
|
32037
32043
|
}
|
|
32038
32044
|
async removeSessionContext({ txn_id: n, context: i }) {
|
|
32039
|
-
return await deleteSessionContext(n, i);
|
|
32045
|
+
return await deleteSessionContext({ txn_id: n, context: i });
|
|
32040
32046
|
}
|
|
32041
32047
|
};
|
|
32042
32048
|
_n.instance = null;
|