@omniloy/sofia-sdk 0.0.2 → 0.0.4
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/legacy/webcomponents.d.ts +61 -0
- package/dist/legacy/webcomponents.es.js +95197 -0
- package/dist/legacy/webcomponents.umd.js +4649 -0
- package/dist/webcomponents.es.js +6225 -6192
- package/dist/webcomponents.es.js.map +1 -1
- package/dist/webcomponents.umd.js +127 -127
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React_2 from 'react';
|
|
2
|
+
|
|
3
|
+
declare enum LanguageCode {
|
|
4
|
+
ar = "ar",
|
|
5
|
+
en = "en",
|
|
6
|
+
es = "es",
|
|
7
|
+
id = "id"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare interface OmniscribeProps {
|
|
11
|
+
baseurl: string;
|
|
12
|
+
wssurl: string;
|
|
13
|
+
apikey: string;
|
|
14
|
+
userid: string;
|
|
15
|
+
toolsargs: object;
|
|
16
|
+
patientid: string;
|
|
17
|
+
isopen?: boolean;
|
|
18
|
+
setIsOpen?: React_2.Dispatch<React_2.SetStateAction<boolean>>;
|
|
19
|
+
patientdata?: object;
|
|
20
|
+
transcriptorselectvalues?: TTranscriptorSelect;
|
|
21
|
+
handleReport: (report: object) => void | undefined;
|
|
22
|
+
'handle-report'?: (report: object) => void | undefined;
|
|
23
|
+
handleAngular?: (report: object) => void | undefined;
|
|
24
|
+
handleFill?: () => Promise<void>;
|
|
25
|
+
renderReportContent: TRenderReport | undefined;
|
|
26
|
+
toast?: TToastState;
|
|
27
|
+
width?: string;
|
|
28
|
+
height?: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
language?: LanguageCode;
|
|
31
|
+
isscreenloading?: boolean;
|
|
32
|
+
disableactions?: boolean;
|
|
33
|
+
onlychat?: boolean;
|
|
34
|
+
disablegenerate?: boolean;
|
|
35
|
+
chatsources?: string[];
|
|
36
|
+
setGetLastReport?: (fn: () => Promise<object | undefined>) => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare const SofiaSDK: CustomElementConstructor;
|
|
40
|
+
|
|
41
|
+
declare enum ToastVariation {
|
|
42
|
+
default = "default",
|
|
43
|
+
danger = "danger"
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare type TRenderReport = (report: object, selected: string) => React_2.JSX.Element[] | React_2.JSX.Element;
|
|
47
|
+
|
|
48
|
+
declare type TToastState = {
|
|
49
|
+
title: string;
|
|
50
|
+
message: string;
|
|
51
|
+
visible: boolean;
|
|
52
|
+
variation: ToastVariation;
|
|
53
|
+
duration?: number;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
declare type TTranscriptorSelect = {
|
|
57
|
+
value: string;
|
|
58
|
+
label: string;
|
|
59
|
+
}[];
|
|
60
|
+
|
|
61
|
+
export { }
|