@eka-care/ekascribe-ts-sdk 3.0.44 → 3.0.46
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 +28 -2
- package/dist/index.mjs +1525 -1525
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -225,7 +225,9 @@ export declare enum ERROR_CODE {
|
|
|
225
225
|
UNKNOWN_ERROR = "unknown_error",
|
|
226
226
|
UNAUTHORIZED = "unauthorized",
|
|
227
227
|
FORBIDDEN = "forbidden",
|
|
228
|
-
START_RECORDING_FAILED = "start_recording_failed"
|
|
228
|
+
START_RECORDING_FAILED = "start_recording_failed",
|
|
229
|
+
BAD_REQUEST = "bad_request",
|
|
230
|
+
NOT_FOUND = "not_found"
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
declare type Gender = 'M' | 'F' | 'O';
|
|
@@ -373,6 +375,7 @@ export declare type TConfigSettings = {
|
|
|
373
375
|
};
|
|
374
376
|
|
|
375
377
|
declare type TDeleteTransactionResponse = {
|
|
378
|
+
error_code?: ERROR_CODE;
|
|
376
379
|
status_code: number;
|
|
377
380
|
message?: string;
|
|
378
381
|
status?: string;
|
|
@@ -385,6 +388,7 @@ declare type TDeleteTransactionResponse = {
|
|
|
385
388
|
};
|
|
386
389
|
|
|
387
390
|
export declare type TDeleteV1DocumentResponse = {
|
|
391
|
+
error_code?: ERROR_CODE;
|
|
388
392
|
status_code: number;
|
|
389
393
|
message?: string;
|
|
390
394
|
[key: string]: unknown;
|
|
@@ -480,10 +484,13 @@ export declare type TGetConfigItem = {
|
|
|
480
484
|
};
|
|
481
485
|
|
|
482
486
|
export declare type TGetConfigV2Response = {
|
|
487
|
+
error_code?: ERROR_CODE;
|
|
483
488
|
data?: {
|
|
484
489
|
supported_languages: TGetConfigItem[];
|
|
485
490
|
supported_output_formats: TGetConfigItem[];
|
|
486
491
|
consultation_modes: TGetConfigItem[];
|
|
492
|
+
supported_integrations: TGetConfigItem[];
|
|
493
|
+
integrations: TGetConfigItem[];
|
|
487
494
|
max_selection: {
|
|
488
495
|
supported_languages: number;
|
|
489
496
|
supported_output_formats: number;
|
|
@@ -539,6 +546,7 @@ export declare type TGetDoctorClinicsRequest = {
|
|
|
539
546
|
};
|
|
540
547
|
|
|
541
548
|
export declare type TGetDoctorClinicsResponse = {
|
|
549
|
+
error_code?: ERROR_CODE;
|
|
542
550
|
data: TClinicInfo[] | null;
|
|
543
551
|
status_code: number;
|
|
544
552
|
message?: string;
|
|
@@ -550,6 +558,7 @@ export declare type TGetDoctorHeaderFooterRequest = {
|
|
|
550
558
|
};
|
|
551
559
|
|
|
552
560
|
export declare type TGetDoctorHeaderFooterResponse = {
|
|
561
|
+
error_code?: ERROR_CODE;
|
|
553
562
|
data: TDoctorHeaderFooterInfo;
|
|
554
563
|
status_code: number;
|
|
555
564
|
message?: string;
|
|
@@ -582,12 +591,14 @@ export declare type TGetStatusApiResponse = {
|
|
|
582
591
|
};
|
|
583
592
|
|
|
584
593
|
export declare type TGetStatusResponse = {
|
|
594
|
+
error_code?: ERROR_CODE;
|
|
585
595
|
response?: TGetStatusApiResponse | null;
|
|
586
596
|
status_code: number;
|
|
587
597
|
message?: string;
|
|
588
598
|
};
|
|
589
599
|
|
|
590
600
|
export declare type TGetTransactionHistoryResponse = {
|
|
601
|
+
error_code?: ERROR_CODE;
|
|
591
602
|
data?: TSessionHistoryData[];
|
|
592
603
|
status?: string;
|
|
593
604
|
status_code: number;
|
|
@@ -635,6 +646,7 @@ export declare type TGetV1SessionDetailsRequest = {
|
|
|
635
646
|
};
|
|
636
647
|
|
|
637
648
|
export declare type TGetV1SessionDetailsResponse = {
|
|
649
|
+
error_code?: ERROR_CODE;
|
|
638
650
|
data?: TGetV1SessionDetailsData;
|
|
639
651
|
status_code: number;
|
|
640
652
|
message?: string;
|
|
@@ -642,6 +654,7 @@ export declare type TGetV1SessionDetailsResponse = {
|
|
|
642
654
|
};
|
|
643
655
|
|
|
644
656
|
export declare interface TGetV1TemplateSectionsResponse {
|
|
657
|
+
error_code?: ERROR_CODE;
|
|
645
658
|
items: TSection[];
|
|
646
659
|
status_code: number;
|
|
647
660
|
error?: {
|
|
@@ -651,6 +664,7 @@ export declare interface TGetV1TemplateSectionsResponse {
|
|
|
651
664
|
}
|
|
652
665
|
|
|
653
666
|
export declare interface TGetV1TemplatesResponse {
|
|
667
|
+
error_code?: ERROR_CODE;
|
|
654
668
|
items: TTemplate[];
|
|
655
669
|
status_code: number;
|
|
656
670
|
error?: {
|
|
@@ -704,6 +718,7 @@ export declare type TPatchSessionContextRequest = {
|
|
|
704
718
|
};
|
|
705
719
|
|
|
706
720
|
export declare type TPatchSessionContextResponse = {
|
|
721
|
+
error_code?: ERROR_CODE;
|
|
707
722
|
status_code: number;
|
|
708
723
|
message?: string;
|
|
709
724
|
[key: string]: unknown;
|
|
@@ -731,6 +746,7 @@ export declare type TPatchVoiceApiV2ConfigRequest = {
|
|
|
731
746
|
auto_download?: boolean;
|
|
732
747
|
auto_detect_language?: boolean;
|
|
733
748
|
input_languages?: TGetConfigItem[];
|
|
749
|
+
integrations?: TGetConfigItem[];
|
|
734
750
|
consultation_mode?: string;
|
|
735
751
|
model_type?: string;
|
|
736
752
|
output_format_template?: TGetConfigItem[];
|
|
@@ -752,6 +768,7 @@ export declare type TPatchVoiceApiV2ConfigRequest = {
|
|
|
752
768
|
};
|
|
753
769
|
|
|
754
770
|
export declare interface TPatchVoiceApiV2ConfigResponse extends TPatchVoiceApiV2ConfigRequest {
|
|
771
|
+
error_code?: ERROR_CODE;
|
|
755
772
|
msg: string;
|
|
756
773
|
status_code: number;
|
|
757
774
|
error?: {
|
|
@@ -769,6 +786,7 @@ export declare type TPatchVoiceApiV3StatusRequest = {
|
|
|
769
786
|
};
|
|
770
787
|
|
|
771
788
|
export declare type TPatchVoiceApiV3StatusResponse = {
|
|
789
|
+
error_code?: ERROR_CODE;
|
|
772
790
|
status: string;
|
|
773
791
|
message: string;
|
|
774
792
|
txn_id: string;
|
|
@@ -798,6 +816,7 @@ export declare type TPauseRecordingResponse = {
|
|
|
798
816
|
};
|
|
799
817
|
|
|
800
818
|
export declare type TPollingResponse = {
|
|
819
|
+
error_code?: ERROR_CODE;
|
|
801
820
|
response?: TGetStatusApiResponse | null;
|
|
802
821
|
status_code: number;
|
|
803
822
|
errorMessage?: string;
|
|
@@ -866,6 +885,7 @@ declare interface TPostV1AiCreateTemplateRequest {
|
|
|
866
885
|
}
|
|
867
886
|
|
|
868
887
|
declare type TPostV1AiCreateTemplateResponse = {
|
|
888
|
+
error_code?: ERROR_CODE;
|
|
869
889
|
title: string;
|
|
870
890
|
template_instructions: string;
|
|
871
891
|
status_code: number;
|
|
@@ -880,6 +900,7 @@ export declare type TPostV1ConvertToTemplateRequest = {
|
|
|
880
900
|
};
|
|
881
901
|
|
|
882
902
|
export declare type TPostV1ConvertToTemplateResponse = {
|
|
903
|
+
error_code?: ERROR_CODE;
|
|
883
904
|
status: 'success' | 'failed';
|
|
884
905
|
message: string;
|
|
885
906
|
txn_id: string;
|
|
@@ -906,6 +927,7 @@ export declare type TPostV1DocumentRequest = {
|
|
|
906
927
|
};
|
|
907
928
|
|
|
908
929
|
export declare type TPostV1DocumentResponse = {
|
|
930
|
+
error_code?: ERROR_CODE;
|
|
909
931
|
status_code: number;
|
|
910
932
|
status?: string;
|
|
911
933
|
message?: string;
|
|
@@ -940,6 +962,7 @@ export declare interface TPostV1TemplateRequest {
|
|
|
940
962
|
}
|
|
941
963
|
|
|
942
964
|
export declare interface TPostV1TemplateResponse {
|
|
965
|
+
error_code?: ERROR_CODE;
|
|
943
966
|
status_code: number;
|
|
944
967
|
msg: string;
|
|
945
968
|
template_id?: string;
|
|
@@ -959,10 +982,12 @@ export declare interface TPostV1TemplateSectionRequest {
|
|
|
959
982
|
}
|
|
960
983
|
|
|
961
984
|
export declare interface TPostV1TemplateSectionResponse {
|
|
985
|
+
error_code?: ERROR_CODE;
|
|
962
986
|
msg: string;
|
|
963
987
|
section_id: string;
|
|
964
988
|
status_code: number;
|
|
965
|
-
|
|
989
|
+
/** Absent when the call failed. */
|
|
990
|
+
action?: 'updated' | 'created_custom';
|
|
966
991
|
error?: {
|
|
967
992
|
code: string;
|
|
968
993
|
message: string;
|
|
@@ -1112,6 +1137,7 @@ export declare type TSuggestedMedication = {
|
|
|
1112
1137
|
};
|
|
1113
1138
|
|
|
1114
1139
|
declare type TSuggestedMedicationResponse = {
|
|
1140
|
+
error_code?: ERROR_CODE;
|
|
1115
1141
|
status_code: number;
|
|
1116
1142
|
message?: string;
|
|
1117
1143
|
session_id?: string;
|