@eka-care/ekascribe-ts-sdk 2.1.50 → 2.1.51

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
@@ -696,6 +696,7 @@ export declare type TPostTransactionInitRequest = {
696
696
  batch_s3_url?: string;
697
697
  audio_file_names?: string[];
698
698
  additional_data?: Record<string, unknown>;
699
+ encounter_id?: string;
699
700
  };
700
701
 
701
702
  export declare type TPostTransactionResponse = {
package/dist/index.mjs CHANGED
@@ -30080,12 +30080,13 @@ async function postTransactionInit({
30080
30080
  batch_s3_url: e,
30081
30081
  audio_file_names: r,
30082
30082
  output_language: o,
30083
- additional_data: h
30083
+ additional_data: h,
30084
+ encounter_id: b
30084
30085
  }) {
30085
30086
  try {
30086
- const b = new Headers();
30087
- b.append("Content-Type", "application/json");
30088
- const g = {
30087
+ const g = new Headers();
30088
+ g.append("Content-Type", "application/json");
30089
+ const y = {
30089
30090
  mode: s,
30090
30091
  s3_url: i,
30091
30092
  input_language: u,
@@ -30100,24 +30101,25 @@ async function postTransactionInit({
30100
30101
  version: t,
30101
30102
  batch_s3_url: e,
30102
30103
  additional_data: h,
30103
- ...r ? { client_generated_files: r } : {}
30104
- }, y = {
30104
+ ...r ? { client_generated_files: r } : {},
30105
+ ...b ? { encounter_id: b } : {}
30106
+ }, m = {
30105
30107
  method: "POST",
30106
- headers: b,
30107
- body: JSON.stringify(g)
30108
- }, m = await fetchWrapper(
30108
+ headers: g,
30109
+ body: JSON.stringify(y)
30110
+ }, S = await fetchWrapper(
30109
30111
  `${GET_EKA_VOICE_HOST_V2()}/transaction/init/${n}`,
30110
- y
30112
+ m
30111
30113
  );
30112
- let S = await m.json();
30113
- return S = {
30114
- ...S,
30115
- code: m.status
30116
- }, S;
30117
- } catch (b) {
30118
- return console.error("%c Line:52 🥖 postTransactionInit -> error", "color:#f5ce50", b), {
30114
+ let T = await S.json();
30115
+ return T = {
30116
+ ...T,
30117
+ code: S.status
30118
+ }, T;
30119
+ } catch (g) {
30120
+ return console.error("%c Line:52 🥖 postTransactionInit -> error", "color:#f5ce50", g), {
30119
30121
  code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
30120
- message: `Something went wrong! ${b}`
30122
+ message: `Something went wrong! ${g}`
30121
30123
  };
30122
30124
  }
30123
30125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "2.1.50",
3
+ "version": "2.1.51",
4
4
  "description": "EkaScribe TypeScript SDK - Modern ES2020 build",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",