@ujet/websdk-headless 3.2.8 → 3.4.1
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 +15 -2
- package/dist/index.js +90 -129
- package/dist/index.mjs +14208 -15137
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ interface SurveyAnswers {
|
|
|
60
60
|
}
|
|
61
61
|
interface ChatEndUserEventRequest {
|
|
62
62
|
event: {
|
|
63
|
-
name:
|
|
63
|
+
name: string;
|
|
64
64
|
payload: Record<string, string>;
|
|
65
65
|
};
|
|
66
66
|
end_user_name?: string;
|
|
@@ -85,6 +85,14 @@ interface EmailRequest {
|
|
|
85
85
|
files?: File[];
|
|
86
86
|
recaptcha?: string;
|
|
87
87
|
}
|
|
88
|
+
interface FormData {
|
|
89
|
+
signature: string;
|
|
90
|
+
data: {
|
|
91
|
+
smart_action_id: number;
|
|
92
|
+
id: number;
|
|
93
|
+
uri: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
88
96
|
|
|
89
97
|
interface LanguageOption {
|
|
90
98
|
lang: string;
|
|
@@ -299,6 +307,7 @@ interface ClientOption {
|
|
|
299
307
|
host?: string;
|
|
300
308
|
lang?: string;
|
|
301
309
|
bridge?: string;
|
|
310
|
+
version?: string;
|
|
302
311
|
cobrowse?: {
|
|
303
312
|
enabled: boolean;
|
|
304
313
|
template?: string;
|
|
@@ -322,6 +331,7 @@ interface ConnectOption {
|
|
|
322
331
|
companyId: string;
|
|
323
332
|
location: string;
|
|
324
333
|
host: string;
|
|
334
|
+
version: string;
|
|
325
335
|
lang: string;
|
|
326
336
|
cobrowse: boolean;
|
|
327
337
|
bridge: string;
|
|
@@ -477,6 +487,7 @@ declare class Client {
|
|
|
477
487
|
getAfterHourMessage(lang?: string): Promise<string>;
|
|
478
488
|
getTimeSlots(menuId: number | string, lang?: string): Promise<string[]>;
|
|
479
489
|
getWaitTimes(menuId: number | string, lang?: string): Promise<WaitTimeResponse>;
|
|
490
|
+
verifyForm(data: FormData): Promise<boolean>;
|
|
480
491
|
createCall(menuId: number | string, data: CallRequest): Promise<CallResponse>;
|
|
481
492
|
loadCall(callId: number | string): Promise<CallResponse>;
|
|
482
493
|
cancelCall(callId: number | string): Promise<CallResponse>;
|
|
@@ -489,6 +500,8 @@ declare class Client {
|
|
|
489
500
|
destroyChat(): Promise<void>;
|
|
490
501
|
getChatDeflection(): Promise<ChatDeflectionResponse | null>;
|
|
491
502
|
sendChatTranscripts(emails: string[]): Promise<RequestReturn>;
|
|
503
|
+
downloadChatTranscript(): Promise<any>;
|
|
504
|
+
getPdfStatus(id: number): Promise<RequestReturn>;
|
|
492
505
|
getChatSurvey(): Promise<ChatSurveyResponse>;
|
|
493
506
|
sendChatSurvey(answers: SurveyAnswers): Promise<RequestReturn>;
|
|
494
507
|
sendChatRate(data: RateRequest): Promise<RequestReturn>;
|
|
@@ -577,4 +590,4 @@ declare const OPTIONS: {
|
|
|
577
590
|
version: string;
|
|
578
591
|
};
|
|
579
592
|
|
|
580
|
-
export { BaseProvider, type CallRequest, type CallResponse, Chat, type ChatDeflectionResponse, type ChatEndUserEventRequest, type ChatHistoryItem, type ChatHistoryResponse, type ChatRequest, type ChatResponse, type ChatSurveyResponse, type ChatTaskMessageResponse, Client, type ClientEvent, type ClientOption, type CobrowseMessages, type CobrowseOption, type CobrowseRequest, type CompanyResponse, type ConnectCallback, type ConnectOption, type ConnectRequest, type ConnectResult, ENVIRONMENT, type EmailRequest, type EscalateRequest, type EventHandler, EventManager, type FileTypeItem, type GetServerMessage, type HumanAgent, type IssueChatTokenMethod, type LanguageOption, type LogData, Logger, type LoggerHandler, MediaStore, type MenuChannel, type MenuItem, type MenuResponse, type MessageRequest, type MessageResponse, OPTIONS, type QuestionItem, type RateRequest, type RequestMethod, type RequestReturn, type SurveyAnswers, type TokenResponse, type TriggerItem, type TriggerMessage, type UserProfile, VERSION, type VirtualAgent, type WaitTimeResponse, addProviderType, consoleLoggerHandler };
|
|
593
|
+
export { BaseProvider, type CallRequest, type CallResponse, Chat, type ChatDeflectionResponse, type ChatEndUserEventRequest, type ChatHistoryItem, type ChatHistoryResponse, type ChatRequest, type ChatResponse, type ChatSurveyResponse, type ChatTaskMessageResponse, Client, type ClientEvent, type ClientOption, type CobrowseMessages, type CobrowseOption, type CobrowseRequest, type CompanyResponse, type ConnectCallback, type ConnectOption, type ConnectRequest, type ConnectResult, ENVIRONMENT, type EmailRequest, type EscalateRequest, type EventHandler, EventManager, type FileTypeItem, type FormData, type GetServerMessage, type HumanAgent, type IssueChatTokenMethod, type LanguageOption, type LogData, Logger, type LoggerHandler, MediaStore, type MenuChannel, type MenuItem, type MenuResponse, type MessageRequest, type MessageResponse, OPTIONS, type QuestionItem, type RateRequest, type RequestMethod, type RequestReturn, type SurveyAnswers, type TokenResponse, type TriggerItem, type TriggerMessage, type UserProfile, VERSION, type VirtualAgent, type WaitTimeResponse, addProviderType, consoleLoggerHandler };
|