@ujet/websdk-headless 3.2.7 → 3.3.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 -4
- package/dist/index.js +45 -45
- package/dist/index.mjs +194 -174
- 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;
|
|
@@ -468,8 +478,6 @@ declare class Client {
|
|
|
468
478
|
destroy(): void;
|
|
469
479
|
on(eventName: string, handler: EventHandler): void;
|
|
470
480
|
off(eventName: string, handler: EventHandler): void;
|
|
471
|
-
setVisibility(isVisible: boolean): void;
|
|
472
|
-
isVisible(): boolean;
|
|
473
481
|
_triggerEvent(eventName: string, data?: any): void;
|
|
474
482
|
getCompany(): Promise<CompanyResponse>;
|
|
475
483
|
runTrigger(cb: (trigger: TriggerItem) => void, lang?: string): Promise<void>;
|
|
@@ -479,6 +487,7 @@ declare class Client {
|
|
|
479
487
|
getAfterHourMessage(lang?: string): Promise<string>;
|
|
480
488
|
getTimeSlots(menuId: number | string, lang?: string): Promise<string[]>;
|
|
481
489
|
getWaitTimes(menuId: number | string, lang?: string): Promise<WaitTimeResponse>;
|
|
490
|
+
verifyForm(data: FormData): Promise<boolean>;
|
|
482
491
|
createCall(menuId: number | string, data: CallRequest): Promise<CallResponse>;
|
|
483
492
|
loadCall(callId: number | string): Promise<CallResponse>;
|
|
484
493
|
cancelCall(callId: number | string): Promise<CallResponse>;
|
|
@@ -491,6 +500,8 @@ declare class Client {
|
|
|
491
500
|
destroyChat(): Promise<void>;
|
|
492
501
|
getChatDeflection(): Promise<ChatDeflectionResponse | null>;
|
|
493
502
|
sendChatTranscripts(emails: string[]): Promise<RequestReturn>;
|
|
503
|
+
downloadChatTranscript(): Promise<any>;
|
|
504
|
+
getPdfStatus(id: number): Promise<RequestReturn>;
|
|
494
505
|
getChatSurvey(): Promise<ChatSurveyResponse>;
|
|
495
506
|
sendChatSurvey(answers: SurveyAnswers): Promise<RequestReturn>;
|
|
496
507
|
sendChatRate(data: RateRequest): Promise<RequestReturn>;
|
|
@@ -579,4 +590,4 @@ declare const OPTIONS: {
|
|
|
579
590
|
version: string;
|
|
580
591
|
};
|
|
581
592
|
|
|
582
|
-
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 };
|