@eka-care/ekascribe-ts-sdk 3.0.44 → 3.0.45
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 +25 -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,6 +484,7 @@ 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[];
|
|
@@ -539,6 +544,7 @@ export declare type TGetDoctorClinicsRequest = {
|
|
|
539
544
|
};
|
|
540
545
|
|
|
541
546
|
export declare type TGetDoctorClinicsResponse = {
|
|
547
|
+
error_code?: ERROR_CODE;
|
|
542
548
|
data: TClinicInfo[] | null;
|
|
543
549
|
status_code: number;
|
|
544
550
|
message?: string;
|
|
@@ -550,6 +556,7 @@ export declare type TGetDoctorHeaderFooterRequest = {
|
|
|
550
556
|
};
|
|
551
557
|
|
|
552
558
|
export declare type TGetDoctorHeaderFooterResponse = {
|
|
559
|
+
error_code?: ERROR_CODE;
|
|
553
560
|
data: TDoctorHeaderFooterInfo;
|
|
554
561
|
status_code: number;
|
|
555
562
|
message?: string;
|
|
@@ -582,12 +589,14 @@ export declare type TGetStatusApiResponse = {
|
|
|
582
589
|
};
|
|
583
590
|
|
|
584
591
|
export declare type TGetStatusResponse = {
|
|
592
|
+
error_code?: ERROR_CODE;
|
|
585
593
|
response?: TGetStatusApiResponse | null;
|
|
586
594
|
status_code: number;
|
|
587
595
|
message?: string;
|
|
588
596
|
};
|
|
589
597
|
|
|
590
598
|
export declare type TGetTransactionHistoryResponse = {
|
|
599
|
+
error_code?: ERROR_CODE;
|
|
591
600
|
data?: TSessionHistoryData[];
|
|
592
601
|
status?: string;
|
|
593
602
|
status_code: number;
|
|
@@ -635,6 +644,7 @@ export declare type TGetV1SessionDetailsRequest = {
|
|
|
635
644
|
};
|
|
636
645
|
|
|
637
646
|
export declare type TGetV1SessionDetailsResponse = {
|
|
647
|
+
error_code?: ERROR_CODE;
|
|
638
648
|
data?: TGetV1SessionDetailsData;
|
|
639
649
|
status_code: number;
|
|
640
650
|
message?: string;
|
|
@@ -642,6 +652,7 @@ export declare type TGetV1SessionDetailsResponse = {
|
|
|
642
652
|
};
|
|
643
653
|
|
|
644
654
|
export declare interface TGetV1TemplateSectionsResponse {
|
|
655
|
+
error_code?: ERROR_CODE;
|
|
645
656
|
items: TSection[];
|
|
646
657
|
status_code: number;
|
|
647
658
|
error?: {
|
|
@@ -651,6 +662,7 @@ export declare interface TGetV1TemplateSectionsResponse {
|
|
|
651
662
|
}
|
|
652
663
|
|
|
653
664
|
export declare interface TGetV1TemplatesResponse {
|
|
665
|
+
error_code?: ERROR_CODE;
|
|
654
666
|
items: TTemplate[];
|
|
655
667
|
status_code: number;
|
|
656
668
|
error?: {
|
|
@@ -704,6 +716,7 @@ export declare type TPatchSessionContextRequest = {
|
|
|
704
716
|
};
|
|
705
717
|
|
|
706
718
|
export declare type TPatchSessionContextResponse = {
|
|
719
|
+
error_code?: ERROR_CODE;
|
|
707
720
|
status_code: number;
|
|
708
721
|
message?: string;
|
|
709
722
|
[key: string]: unknown;
|
|
@@ -752,6 +765,7 @@ export declare type TPatchVoiceApiV2ConfigRequest = {
|
|
|
752
765
|
};
|
|
753
766
|
|
|
754
767
|
export declare interface TPatchVoiceApiV2ConfigResponse extends TPatchVoiceApiV2ConfigRequest {
|
|
768
|
+
error_code?: ERROR_CODE;
|
|
755
769
|
msg: string;
|
|
756
770
|
status_code: number;
|
|
757
771
|
error?: {
|
|
@@ -769,6 +783,7 @@ export declare type TPatchVoiceApiV3StatusRequest = {
|
|
|
769
783
|
};
|
|
770
784
|
|
|
771
785
|
export declare type TPatchVoiceApiV3StatusResponse = {
|
|
786
|
+
error_code?: ERROR_CODE;
|
|
772
787
|
status: string;
|
|
773
788
|
message: string;
|
|
774
789
|
txn_id: string;
|
|
@@ -798,6 +813,7 @@ export declare type TPauseRecordingResponse = {
|
|
|
798
813
|
};
|
|
799
814
|
|
|
800
815
|
export declare type TPollingResponse = {
|
|
816
|
+
error_code?: ERROR_CODE;
|
|
801
817
|
response?: TGetStatusApiResponse | null;
|
|
802
818
|
status_code: number;
|
|
803
819
|
errorMessage?: string;
|
|
@@ -866,6 +882,7 @@ declare interface TPostV1AiCreateTemplateRequest {
|
|
|
866
882
|
}
|
|
867
883
|
|
|
868
884
|
declare type TPostV1AiCreateTemplateResponse = {
|
|
885
|
+
error_code?: ERROR_CODE;
|
|
869
886
|
title: string;
|
|
870
887
|
template_instructions: string;
|
|
871
888
|
status_code: number;
|
|
@@ -880,6 +897,7 @@ export declare type TPostV1ConvertToTemplateRequest = {
|
|
|
880
897
|
};
|
|
881
898
|
|
|
882
899
|
export declare type TPostV1ConvertToTemplateResponse = {
|
|
900
|
+
error_code?: ERROR_CODE;
|
|
883
901
|
status: 'success' | 'failed';
|
|
884
902
|
message: string;
|
|
885
903
|
txn_id: string;
|
|
@@ -906,6 +924,7 @@ export declare type TPostV1DocumentRequest = {
|
|
|
906
924
|
};
|
|
907
925
|
|
|
908
926
|
export declare type TPostV1DocumentResponse = {
|
|
927
|
+
error_code?: ERROR_CODE;
|
|
909
928
|
status_code: number;
|
|
910
929
|
status?: string;
|
|
911
930
|
message?: string;
|
|
@@ -940,6 +959,7 @@ export declare interface TPostV1TemplateRequest {
|
|
|
940
959
|
}
|
|
941
960
|
|
|
942
961
|
export declare interface TPostV1TemplateResponse {
|
|
962
|
+
error_code?: ERROR_CODE;
|
|
943
963
|
status_code: number;
|
|
944
964
|
msg: string;
|
|
945
965
|
template_id?: string;
|
|
@@ -959,10 +979,12 @@ export declare interface TPostV1TemplateSectionRequest {
|
|
|
959
979
|
}
|
|
960
980
|
|
|
961
981
|
export declare interface TPostV1TemplateSectionResponse {
|
|
982
|
+
error_code?: ERROR_CODE;
|
|
962
983
|
msg: string;
|
|
963
984
|
section_id: string;
|
|
964
985
|
status_code: number;
|
|
965
|
-
|
|
986
|
+
/** Absent when the call failed. */
|
|
987
|
+
action?: 'updated' | 'created_custom';
|
|
966
988
|
error?: {
|
|
967
989
|
code: string;
|
|
968
990
|
message: string;
|
|
@@ -1112,6 +1134,7 @@ export declare type TSuggestedMedication = {
|
|
|
1112
1134
|
};
|
|
1113
1135
|
|
|
1114
1136
|
declare type TSuggestedMedicationResponse = {
|
|
1137
|
+
error_code?: ERROR_CODE;
|
|
1115
1138
|
status_code: number;
|
|
1116
1139
|
message?: string;
|
|
1117
1140
|
session_id?: string;
|