@botonic/core 0.30.1 → 0.31.0-alpha.0

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.
@@ -66,6 +66,21 @@ export declare class HandOffBuilder {
66
66
  * @deprecated use {@link HandOffBuilder} class instead
67
67
  */
68
68
  export declare function humanHandOff(session: any, queueNameOrId: string | undefined, onFinish: any): Promise<void>;
69
+ export interface HubtypeHandoffParams {
70
+ queue?: string;
71
+ agent_email?: string;
72
+ agent_id?: string;
73
+ force_assign_if_not_available?: boolean;
74
+ auto_assign_on_waiting?: boolean;
75
+ case_info?: string;
76
+ note?: string;
77
+ auto_idle_message?: string;
78
+ shadowing?: boolean;
79
+ on_finish?: string;
80
+ case_extra_data?: HandoffExtraData;
81
+ bot_event?: BotEventData;
82
+ subscribe_helpdesk_events?: HelpdeskEvent[];
83
+ }
69
84
  export declare function storeCaseRating(session: Session, rating: number, context?: any): Promise<{
70
85
  status: string;
71
86
  }>;
@@ -11,7 +11,7 @@ interface BotonicHeaders {
11
11
  'X-BOTONIC-LAST-MESSAGE-ID': string;
12
12
  'X-BOTONIC-LAST-MESSAGE-UPDATE-DATE': string;
13
13
  }
14
- interface ServerConfig {
14
+ export interface ServerConfig {
15
15
  activityTimeout?: number;
16
16
  pongTimeout?: number;
17
17
  }
@@ -66,6 +66,21 @@ export declare class HandOffBuilder {
66
66
  * @deprecated use {@link HandOffBuilder} class instead
67
67
  */
68
68
  export declare function humanHandOff(session: any, queueNameOrId: string | undefined, onFinish: any): Promise<void>;
69
+ export interface HubtypeHandoffParams {
70
+ queue?: string;
71
+ agent_email?: string;
72
+ agent_id?: string;
73
+ force_assign_if_not_available?: boolean;
74
+ auto_assign_on_waiting?: boolean;
75
+ case_info?: string;
76
+ note?: string;
77
+ auto_idle_message?: string;
78
+ shadowing?: boolean;
79
+ on_finish?: string;
80
+ case_extra_data?: HandoffExtraData;
81
+ bot_event?: BotEventData;
82
+ subscribe_helpdesk_events?: HelpdeskEvent[];
83
+ }
69
84
  export declare function storeCaseRating(session: Session, rating: number, context?: any): Promise<{
70
85
  status: string;
71
86
  }>;
@@ -11,7 +11,7 @@ interface BotonicHeaders {
11
11
  'X-BOTONIC-LAST-MESSAGE-ID': string;
12
12
  'X-BOTONIC-LAST-MESSAGE-UPDATE-DATE': string;
13
13
  }
14
- interface ServerConfig {
14
+ export interface ServerConfig {
15
15
  activityTimeout?: number;
16
16
  pongTimeout?: number;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/core",
3
- "version": "0.30.1",
3
+ "version": "0.31.0-alpha.0",
4
4
  "license": "MIT",
5
5
  "description": "Build Chatbots using React",
6
6
  "main": "./lib/cjs/index.js",
package/src/handoff.ts CHANGED
@@ -195,7 +195,7 @@ export async function humanHandOff(session, queueNameOrId = '', onFinish) {
195
195
  return builder.handOff()
196
196
  }
197
197
 
198
- interface HubtypeHandoffParams {
198
+ export interface HubtypeHandoffParams {
199
199
  queue?: string
200
200
  agent_email?: string
201
201
  agent_id?: string
@@ -15,7 +15,7 @@ interface BotonicHeaders {
15
15
  'X-BOTONIC-LAST-MESSAGE-ID': string
16
16
  'X-BOTONIC-LAST-MESSAGE-UPDATE-DATE': string
17
17
  }
18
- interface ServerConfig {
18
+ export interface ServerConfig {
19
19
  activityTimeout?: number
20
20
  pongTimeout?: number
21
21
  }