@eka-care/ekascribe-ts-sdk 2.1.36 → 2.1.37
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 +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare class EkaScribe {
|
|
|
60
60
|
force_commit?: boolean;
|
|
61
61
|
}): Promise<TEndRecordingResponse>;
|
|
62
62
|
patchSessionStatus(request: TPatchTransactionRequest): Promise<TPostTransactionResponse>;
|
|
63
|
+
discardSession(request: TPatchTransactionRequest): Promise<TPostTransactionResponse>;
|
|
63
64
|
commitTransactionCall(): Promise<TEndRecordingResponse>;
|
|
64
65
|
stopTransactionCall(): Promise<TEndRecordingResponse>;
|
|
65
66
|
getTemplateOutput({ txn_id }: {
|
package/dist/index.mjs
CHANGED
|
@@ -31787,6 +31787,16 @@ const _n = class _n {
|
|
|
31787
31787
|
return console.log("%c Line:138 🍖 retryUploadResponse", "color:#3f7cff", i), i;
|
|
31788
31788
|
}
|
|
31789
31789
|
async patchSessionStatus(n) {
|
|
31790
|
+
try {
|
|
31791
|
+
return await patchTransactionStatus(n);
|
|
31792
|
+
} catch (i) {
|
|
31793
|
+
return {
|
|
31794
|
+
code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
|
|
31795
|
+
message: `Failed to patch session, ${i}`
|
|
31796
|
+
};
|
|
31797
|
+
}
|
|
31798
|
+
}
|
|
31799
|
+
async discardSession(n) {
|
|
31790
31800
|
try {
|
|
31791
31801
|
const i = EkaScribeStore$1.eventCallback;
|
|
31792
31802
|
this.vadInstance.pauseVad(), this.vadInstance.destroyVad();
|