@eka-care/ekascribe-ts-sdk 2.1.31 → 2.1.34

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
@@ -59,7 +59,7 @@ declare class EkaScribe {
59
59
  retryUploadRecording({ force_commit }: {
60
60
  force_commit?: boolean;
61
61
  }): Promise<TEndRecordingResponse>;
62
- patchSessionStatus({ sessionId, processing_status, processing_error, }: TPatchTransactionRequest): Promise<TPostTransactionResponse>;
62
+ patchSessionStatus(request: TPatchTransactionRequest): Promise<TPostTransactionResponse>;
63
63
  commitTransactionCall(): Promise<TEndRecordingResponse>;
64
64
  stopTransactionCall(): Promise<TEndRecordingResponse>;
65
65
  getTemplateOutput({ txn_id }: {
@@ -128,6 +128,8 @@ declare class EkaScribe {
128
128
  createDocument(request: TPostV1DocumentRequest): Promise<TPostV1DocumentResponse>;
129
129
  deleteDocument(document_id: string): Promise<TDeleteV1DocumentResponse>;
130
130
  getChunkTranscript(txnId: string, chunkNumber: string): Promise<TFetchChunkTranscriptResult>;
131
+ addSessionContext({ txn_id, context }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
132
+ removeSessionContext({ txn_id, context }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
131
133
  }
132
134
 
133
135
  export declare enum ERROR_CODE {
@@ -488,6 +490,7 @@ declare type TOutputSummary = {
488
490
  errors?: TTemplateMessage[];
489
491
  warnings?: TTemplateMessage[];
490
492
  document_id: string;
493
+ document_type: string;
491
494
  document_path: {
492
495
  bucket: string;
493
496
  folder: string;
@@ -503,6 +506,20 @@ export declare type TPartialResultCallback = (data: {
503
506
  poll_status: 'in-progress' | 'success' | 'failed' | 'timeout';
504
507
  }) => void;
505
508
 
509
+ export declare type TPatchSessionContextRequest = {
510
+ txn_id: string;
511
+ context: {
512
+ past_sessions?: string[];
513
+ attachments?: string[];
514
+ };
515
+ };
516
+
517
+ export declare type TPatchSessionContextResponse = {
518
+ code: number;
519
+ message?: string;
520
+ [key: string]: unknown;
521
+ };
522
+
506
523
  declare type TPatchTransactionError = {
507
524
  error: {
508
525
  type: string;
@@ -513,8 +530,9 @@ declare type TPatchTransactionError = {
513
530
 
514
531
  export declare type TPatchTransactionRequest = {
515
532
  sessionId: string;
516
- processing_status: string;
533
+ processing_status?: string;
517
534
  processing_error?: TPatchTransactionError;
535
+ patient_details?: TPatientDetails;
518
536
  };
519
537
 
520
538
  export declare type TPatchVoiceApiV2ConfigRequest = {
@@ -682,6 +700,7 @@ export declare type TPostV1ConvertToTemplateResponse = {
682
700
  export declare type TPostV1DocumentRequest = {
683
701
  session_id: string;
684
702
  document_name: string;
703
+ type?: string;
685
704
  };
686
705
 
687
706
  export declare type TPostV1DocumentResponse = {