@koredev/agentai-web-sdk 1.4.8-rc → 1.4.9-rc
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/components/common/constants/errorcodes.d.ts +130 -0
- package/dist/components/common/services/rootService.d.ts +4 -4
- package/dist/components/common/templatemanager/tabs/ErrorBoundary/ErrorBoundary.d.ts +1 -0
- package/dist/components/common/templatemanager/tabs/ErrorBoundary/ErrorHandler.d.ts +3 -1
- package/dist/esm/agentai-web-sdk.min.js +1 -1
- package/dist/hooks/useTooltip.d.ts +23 -0
- package/dist/umd/agentai-web-sdk-umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export declare const ERROR_CODES: {
|
|
2
|
+
ERR_WS_INIT: {
|
|
3
|
+
message: string;
|
|
4
|
+
action: string;
|
|
5
|
+
code: string;
|
|
6
|
+
details: {
|
|
7
|
+
requiredFields: string[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
ERR_WS_TIMEOUT: {
|
|
11
|
+
message: string;
|
|
12
|
+
action: string;
|
|
13
|
+
code: string;
|
|
14
|
+
details: {
|
|
15
|
+
requiredFields: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
ERR_WS_DISCONNECT: {
|
|
19
|
+
message: string;
|
|
20
|
+
action: string;
|
|
21
|
+
code: string;
|
|
22
|
+
details: {
|
|
23
|
+
requiredFields: string[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
ERR_WS_RECONNECT_FAILED: {
|
|
27
|
+
message: string;
|
|
28
|
+
action: string;
|
|
29
|
+
code: string;
|
|
30
|
+
details: {
|
|
31
|
+
requiredFields: string[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
ERR_WS_GENERIC: {
|
|
35
|
+
message: string;
|
|
36
|
+
action: string;
|
|
37
|
+
code: string;
|
|
38
|
+
details: {
|
|
39
|
+
requiredFields: string[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
ERR_SETTINGS_API_FAILURE: {
|
|
43
|
+
message: string;
|
|
44
|
+
action: string;
|
|
45
|
+
code: string;
|
|
46
|
+
details: {
|
|
47
|
+
requiredFields: string[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
ERR_TOKEN_INVALID: {
|
|
51
|
+
message: string;
|
|
52
|
+
action: string;
|
|
53
|
+
code: string;
|
|
54
|
+
details: {
|
|
55
|
+
requiredFields: string[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
ERR_CHECKLIST_API_FAILURE: {
|
|
59
|
+
message: string;
|
|
60
|
+
action: string;
|
|
61
|
+
code: string;
|
|
62
|
+
details: {
|
|
63
|
+
requiredFields: string[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
ERR_ASST_HISTORY_API_FAILURE: {
|
|
67
|
+
message: string;
|
|
68
|
+
action: string;
|
|
69
|
+
code: string;
|
|
70
|
+
details: {
|
|
71
|
+
requiredFields: string[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
ERR_MYBOT_HISTORY_API_FAILURE: {
|
|
75
|
+
message: string;
|
|
76
|
+
action: string;
|
|
77
|
+
code: string;
|
|
78
|
+
details: {
|
|
79
|
+
requiredFields: string[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
ERR_FEEDBACK_API_FAILURE: {
|
|
83
|
+
message: string;
|
|
84
|
+
action: string;
|
|
85
|
+
code: string;
|
|
86
|
+
details: {
|
|
87
|
+
requiredFields: string[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
ERR_SUMMARY_LOAD_FAILURE: {
|
|
91
|
+
message: string;
|
|
92
|
+
action: string;
|
|
93
|
+
code: string;
|
|
94
|
+
details: {
|
|
95
|
+
requiredFields: string[];
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
ERR_AUTO_SUGGESTION_TRIGGER_FAILURE: {
|
|
99
|
+
message: string;
|
|
100
|
+
action: string;
|
|
101
|
+
code: string;
|
|
102
|
+
details: {
|
|
103
|
+
requiredFields: never[];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
ERR_USER_MISSING_REQ_FIELDS: {
|
|
107
|
+
message: string;
|
|
108
|
+
action: string;
|
|
109
|
+
code: string;
|
|
110
|
+
details: {
|
|
111
|
+
requiredFields: string[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
ERR_AGENT_MISSING_REQ_FIELDS: {
|
|
115
|
+
message: string;
|
|
116
|
+
action: string;
|
|
117
|
+
code: string;
|
|
118
|
+
details: {
|
|
119
|
+
requiredFields: string[];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
ERR_JS_CODE: {
|
|
123
|
+
message: string;
|
|
124
|
+
action: string;
|
|
125
|
+
code: string;
|
|
126
|
+
details: {
|
|
127
|
+
requiredFields: never[];
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
@@ -230,9 +230,9 @@ export declare class rootService {
|
|
|
230
230
|
handleEntityInput(node: any, hostInstance: any, disabled?: boolean): void;
|
|
231
231
|
showAgentIcon(node: any, hostInstance: any): void;
|
|
232
232
|
showEntityNodeInputButtons(askCustTemplate: any): void;
|
|
233
|
-
processUserMessages(userResponse: any, lastObj: any, getNode: (lastObj: any) => any, hostInstance: any): any;
|
|
234
|
-
processUserMessagesForSmallTalk(userResponse: any, lastObj: any, hostInstance: any): any;
|
|
235
|
-
processUserMessagesForAutomation(userResponse: any, lastObj: any, hostInstance: any): any;
|
|
233
|
+
processUserMessages(userResponse: any, lastObj: any, templateClick: boolean, getNode: (lastObj: any) => any, hostInstance: any): any;
|
|
234
|
+
processUserMessagesForSmallTalk(userResponse: any, lastObj: any, templateClick: boolean, hostInstance: any): any;
|
|
235
|
+
processUserMessagesForAutomation(userResponse: any, lastObj: any, templateClick: boolean, hostInstance: any): any;
|
|
236
236
|
getTemplateHtml(isTemplateRender: boolean, result: any, hostInstance: any): any;
|
|
237
237
|
handleTemplateClickEvents(value: any, activeTab: string, positionId: string, hostInstance: any): void;
|
|
238
238
|
closeListView(hostInstance: any): void;
|
|
@@ -253,7 +253,7 @@ export declare class rootService {
|
|
|
253
253
|
getMybotHistory(params: any, hostInstance: any): Promise<any>;
|
|
254
254
|
getMybotFeedback(params: any, hostInstance: any): Promise<any>;
|
|
255
255
|
formatHistoryResponseToNormalRender(res: any, feedbackData: any, isAssist?: boolean): any;
|
|
256
|
-
handlePreviousAutomationNode(entityNode: any, automationNodeObj: any, hostInstance: any): void;
|
|
256
|
+
handlePreviousAutomationNode(entityNode: any, automationNodeObj: any, templateClick: boolean, hostInstance: any): void;
|
|
257
257
|
handleHistoryPreviousAutomationNode(entityNode: any, automationNodeObj: any, hostInstance: any): void;
|
|
258
258
|
}
|
|
259
259
|
export default rootService;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare class ErrorHandler {
|
|
2
|
+
static hostInstance: any;
|
|
2
3
|
private static disableErrorOverlay;
|
|
3
|
-
static initialize(): void;
|
|
4
|
+
static initialize(hostInstance: any): void;
|
|
5
|
+
static emitError(error: any): void;
|
|
4
6
|
static wrapExternalCall<T>(fn: () => T, fallback: T): T;
|
|
5
7
|
}
|