@myinterview/chatbot 0.1.44-experimental-c81d525 → 0.1.46-beta-1eaf512
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 +11 -4
- package/dist/index.js +15988 -15982
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const ChatbotClient: (clientConfig?: IChatbotClient) => JSX_2.Ele
|
|
|
5
5
|
declare interface IChatbot {
|
|
6
6
|
config: IConfig;
|
|
7
7
|
candidate_id?: string;
|
|
8
|
+
ai_model?: string;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export declare type IChatbotClient = Partial<Omit<IChatbot, 'config'> & {
|
|
@@ -13,7 +14,7 @@ export declare type IChatbotClient = Partial<Omit<IChatbot, 'config'> & {
|
|
|
13
14
|
|
|
14
15
|
declare interface IConfig {
|
|
15
16
|
isReady: boolean;
|
|
16
|
-
|
|
17
|
+
validationStatus: ValidationStatus;
|
|
17
18
|
auth: string;
|
|
18
19
|
useInbox?: boolean;
|
|
19
20
|
usePopup?: boolean;
|
|
@@ -44,7 +45,7 @@ declare interface IConfig {
|
|
|
44
45
|
onError?: (data: IOnErrorData) => void;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
declare type IConfigClient = Partial<Omit<IConfig, 'usePopup' | 'isReady' | '
|
|
48
|
+
declare type IConfigClient = Partial<Omit<IConfig, 'usePopup' | 'isReady' | 'validationStatus' | 'dtnc'>>;
|
|
48
49
|
|
|
49
50
|
declare type IEnv = 'development' | 'staging' | 'production';
|
|
50
51
|
|
|
@@ -64,12 +65,18 @@ declare type ITimeFormat = '12h' | '24h' | 'deviceDefault';
|
|
|
64
65
|
|
|
65
66
|
export declare const usePopupChatbot: () => {
|
|
66
67
|
init: (clientConfig: Partial<Omit<IChatbot, "config"> & {
|
|
67
|
-
config: Partial<Omit<IConfig, "usePopup" | "isReady" | "
|
|
68
|
+
config: Partial<Omit<IConfig, "usePopup" | "isReady" | "validationStatus" | "dtnc">>;
|
|
68
69
|
}>) => void;
|
|
69
70
|
update: (clientConfig?: Partial<Omit<IChatbot, "config"> & {
|
|
70
|
-
config: Partial<Omit<IConfig, "usePopup" | "isReady" | "
|
|
71
|
+
config: Partial<Omit<IConfig, "usePopup" | "isReady" | "validationStatus" | "dtnc">>;
|
|
71
72
|
}>) => void;
|
|
72
73
|
shutdown: () => void;
|
|
73
74
|
};
|
|
74
75
|
|
|
76
|
+
declare const enum ValidationStatus {
|
|
77
|
+
VALID = 0,
|
|
78
|
+
INVALID = 1,
|
|
79
|
+
NOT_FOUND = 2
|
|
80
|
+
}
|
|
81
|
+
|
|
75
82
|
export { }
|