@eka-care/ekascribe-ts-sdk 2.1.35 → 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 CHANGED
@@ -510,7 +510,10 @@ export declare type TPatchSessionContextRequest = {
510
510
  txn_id: string;
511
511
  context: {
512
512
  past_sessions?: string[];
513
- attachments?: string[];
513
+ attachments?: {
514
+ id: string;
515
+ patient_oid?: string;
516
+ }[];
514
517
  };
515
518
  };
516
519
 
package/dist/index.mjs CHANGED
@@ -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(s, n) {
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(s, n) {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "2.1.35",
3
+ "version": "2.1.36",
4
4
  "description": "EkaScribe TypeScript SDK - Modern ES2020 build",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",