@eka-care/ekascribe-ts-sdk 2.0.9 → 2.0.11

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +27 -84
  2. package/dist/index.mjs +4667 -4622
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -46,7 +46,7 @@ declare class EkaScribe {
46
46
  }): Promise<TGetStatusResponse>;
47
47
  pollSessionOutput(request: {
48
48
  txn_id: string;
49
- max_polling_time: number;
49
+ max_polling_time?: number;
50
50
  }): Promise<TPollingResponse>;
51
51
  getSessionHistory({ txn_count }: {
52
52
  txn_count: number;
@@ -117,84 +117,6 @@ export declare const getEkaScribeInstance: ({ access_token, env, clientId, }: {
117
117
  clientId?: string;
118
118
  }) => EkaScribe;
119
119
 
120
- declare interface IADDITIONAL_DATA {
121
- doctor: {
122
- _id: string;
123
- profile: {
124
- personal: {
125
- name: {
126
- l: string;
127
- f: string;
128
- };
129
- };
130
- };
131
- };
132
- }
133
-
134
- declare interface IApiResponse {
135
- data: {
136
- output: TOutputSummary[];
137
- additional_data?: IADDITIONAL_DATA;
138
- meta_data?: {
139
- total_resources?: number;
140
- total_parsed_resources?: number;
141
- };
142
- audio_matrix?: {
143
- quality: string;
144
- };
145
- created_at?: string;
146
- template_results: {
147
- integration: TOutputSummary[];
148
- custom: TOutputSummary[];
149
- transcript?: TOutputSummary[];
150
- };
151
- };
152
- error?: IError;
153
- }
154
-
155
- declare interface IError {
156
- code: string;
157
- msg: string;
158
- }
159
-
160
- declare type TAdditionalData = {
161
- doctor: {
162
- _id: string;
163
- profile: {
164
- personal: {
165
- name: {
166
- l: string;
167
- f: string;
168
- };
169
- };
170
- };
171
- };
172
- };
173
-
174
- declare type TApiResponse = {
175
- data: {
176
- output: TOutputSummary[];
177
- audio_matrix?: {
178
- quality: string;
179
- };
180
- additional_data?: TAdditionalData;
181
- meta_data?: {
182
- total_resources?: number;
183
- total_parsed_resources?: number;
184
- };
185
- created_at?: string;
186
- template_results: {
187
- integration: TOutputSummary[];
188
- custom: TOutputSummary[];
189
- transcript: TOutputSummary[];
190
- };
191
- };
192
- error?: {
193
- code: string;
194
- msg: string;
195
- };
196
- };
197
-
198
120
  declare type TAudioChunksInfo = {
199
121
  fileName: string;
200
122
  timestamp: {
@@ -305,8 +227,31 @@ declare type TGetConfigV2Response = {
305
227
  code?: number;
306
228
  };
307
229
 
230
+ declare type TGetStatusApiResponse = {
231
+ data: {
232
+ output: TOutputSummary[];
233
+ audio_matrix?: {
234
+ quality: string;
235
+ };
236
+ meta_data?: {
237
+ total_resources?: number;
238
+ total_parsed_resources?: number;
239
+ };
240
+ created_at?: string;
241
+ template_results: {
242
+ integration: TOutputSummary[];
243
+ custom: TOutputSummary[];
244
+ transcript: TOutputSummary[];
245
+ };
246
+ };
247
+ error?: {
248
+ code: string;
249
+ msg: string;
250
+ };
251
+ };
252
+
308
253
  declare type TGetStatusResponse = {
309
- response?: TApiResponse | null;
254
+ response?: TGetStatusApiResponse | null;
310
255
  status_code: number;
311
256
  message?: string;
312
257
  };
@@ -346,7 +291,7 @@ declare type TNetworkInfo = {
346
291
 
347
292
  declare type TOutputSummary = {
348
293
  template_id: string;
349
- value?: TTemplateValue;
294
+ value?: any;
350
295
  type: string;
351
296
  name: string;
352
297
  lang?: string;
@@ -420,7 +365,7 @@ declare type TPauseRecordingResponse = {
420
365
  };
421
366
 
422
367
  declare type TPollingResponse = {
423
- response?: IApiResponse | null;
368
+ response?: TGetStatusApiResponse | null;
424
369
  status_code: number;
425
370
  errorMessage?: string;
426
371
  errorCode?: string;
@@ -642,8 +587,6 @@ declare type TTemplateMessage = {
642
587
 
643
588
  declare type TTemplateStatus = 'success' | 'partial_success' | 'failure';
644
589
 
645
- declare type TTemplateValue = string | Record<string, unknown> | Array<unknown> | null;
646
-
647
590
  declare type TVadFrameProcessedCallback = (args: {
648
591
  probabilities: {
649
592
  notSpeech: number;