@eka-care/ekascribe-ts-sdk 2.1.46 → 2.1.48

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
@@ -742,6 +742,7 @@ export declare type TPostV1DocumentRequest = {
742
742
  document_name?: string;
743
743
  type?: string;
744
744
  document_id?: string;
745
+ publish?: Record<string, unknown>;
745
746
  };
746
747
 
747
748
  export declare type TPostV1DocumentResponse = {
@@ -766,6 +767,7 @@ export declare type TPostV1DocumentResponse = {
766
767
  presigned_url: string;
767
768
  created_at: string;
768
769
  updated_at: number;
770
+ publish: Record<string, unknown>;
769
771
  };
770
772
  };
771
773
 
@@ -869,7 +871,7 @@ export declare type TSessionDocument = {
869
871
  session_id: string;
870
872
  template_id: string;
871
873
  document_name: string;
872
- document_type: 'document' | 'context' | 'transcript';
874
+ document_type: 'notes' | 'context' | 'transcript' | 'integration';
873
875
  type: string;
874
876
  status: string;
875
877
  errors: unknown[];
package/dist/index.mjs CHANGED
@@ -30207,11 +30207,7 @@ const initialiseTransaction = async (s) => {
30207
30207
  audioBuffer_exists: !!EkaScribeStore$1.audioBufferInstance
30208
30208
  }), captureEvent("Session resumed", { txn_id: s }), await startVoiceRecording(c);
30209
30209
  } catch (u) {
30210
- return console.error(
30211
- "%c Line:00 🍇 startRecordingForExistingSession err",
30212
- "color:#b03734",
30213
- u
30214
- ), {
30210
+ return console.error("%c Line:00 🍇 startRecordingForExistingSession err", "color:#b03734", u), {
30215
30211
  error_code: ERROR_CODE.INTERNAL_SERVER_ERROR,
30216
30212
  status_code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
30217
30213
  message: `An error occurred while starting the recording for existing session: ${u}`
@@ -31610,30 +31606,32 @@ async function postV1Document({
31610
31606
  session_id: s,
31611
31607
  document_name: n,
31612
31608
  type: i,
31613
- document_id: c
31609
+ document_id: c,
31610
+ publish: l
31614
31611
  }) {
31615
31612
  try {
31616
- const l = new Headers();
31617
- l.append("Content-Type", "application/json");
31618
- const f = {
31613
+ const f = new Headers();
31614
+ f.append("Content-Type", "application/json");
31615
+ const u = {
31619
31616
  session_id: s,
31620
31617
  type: i,
31621
31618
  ...n ? { document_name: n } : {},
31622
- ...c ? { document_id: c } : {}
31623
- }, u = {
31619
+ ...c ? { document_id: c } : {},
31620
+ ...l ? { publish: l } : {}
31621
+ }, d = {
31624
31622
  method: "POST",
31625
- headers: l,
31626
- body: JSON.stringify(f)
31627
- }, d = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/documents`, u);
31628
- let h = await d.json();
31629
- return h = {
31630
- ...h,
31631
- code: d.status
31632
- }, h;
31633
- } catch (l) {
31634
- return console.error("%c postV1Document -> error", "color:#f5ce50", l), {
31623
+ headers: f,
31624
+ body: JSON.stringify(u)
31625
+ }, h = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/documents`, d);
31626
+ let p = await h.json();
31627
+ return p = {
31628
+ ...p,
31629
+ code: h.status
31630
+ }, p;
31631
+ } catch (f) {
31632
+ return console.error("%c postV1Document -> error", "color:#f5ce50", f), {
31635
31633
  code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
31636
- message: `Something went wrong! ${l}`
31634
+ message: `Something went wrong! ${f}`
31637
31635
  };
31638
31636
  }
31639
31637
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "2.1.46",
3
+ "version": "2.1.48",
4
4
  "description": "EkaScribe TypeScript SDK - Modern ES2020 build",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",