@ujet/websdk-headless 3.2.6 → 3.2.7

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/README.md CHANGED
@@ -205,7 +205,10 @@ interface CallRequest {
205
205
  ticket_id?: string;
206
206
  email?: string;
207
207
  recording_permission?: "recording_permission_not_asked" | "recording_permission_granted" | "recording_permission_denied";
208
- ;
208
+ custom_data?: {
209
+ signed?: string;
210
+ unsigned?: Record<string, any>;
211
+ };
209
212
  }
210
213
 
211
214
  (menuId: number | string, data: CallRequest)
@@ -278,7 +281,10 @@ interface ChatRequest {
278
281
  email?: string;
279
282
  greeting?: string;
280
283
  cobrowsable?: boolean;
281
- custom_data?: string | Record<string, any>;
284
+ custom_data?: {
285
+ signed?: string;
286
+ unsigned?: Record<string, any>;
287
+ };
282
288
  }
283
289
 
284
290
  (menuId: number | string, data: ChatRequest)
package/dist/index.d.ts CHANGED
@@ -36,7 +36,10 @@ interface ChatRequest {
36
36
  email?: string;
37
37
  greeting?: string;
38
38
  cobrowsable?: boolean;
39
- custom_data?: string | Record<string, any>;
39
+ custom_data?: {
40
+ signed?: string;
41
+ unsigned?: Record<string, any>;
42
+ };
40
43
  }
41
44
  interface EscalateRequest {
42
45
  force_escalate: boolean;
@@ -69,6 +72,10 @@ interface CallRequest {
69
72
  ticket_id?: string;
70
73
  email?: string;
71
74
  recording_permission?: 'recording_permission_not_asked' | 'recording_permission_granted' | 'recording_permission_denied';
75
+ custom_data?: {
76
+ signed?: string;
77
+ unsigned?: Record<string, any>;
78
+ };
72
79
  }
73
80
  interface EmailRequest {
74
81
  name?: string;
@@ -461,6 +468,8 @@ declare class Client {
461
468
  destroy(): void;
462
469
  on(eventName: string, handler: EventHandler): void;
463
470
  off(eventName: string, handler: EventHandler): void;
471
+ setVisibility(isVisible: boolean): void;
472
+ isVisible(): boolean;
464
473
  _triggerEvent(eventName: string, data?: any): void;
465
474
  getCompany(): Promise<CompanyResponse>;
466
475
  runTrigger(cb: (trigger: TriggerItem) => void, lang?: string): Promise<void>;