@botonic/plugin-hubtype-analytics 0.27.0 → 0.27.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/lib/cjs/event-models/ht-event-custom.d.ts +1 -0
- package/lib/cjs/event-models/ht-event-custom.js +2 -1
- package/lib/cjs/event-models/ht-event-custom.js.map +1 -1
- package/lib/cjs/event-models/ht-event-fallback.d.ts +1 -0
- package/lib/cjs/event-models/ht-event-fallback.js +1 -0
- package/lib/cjs/event-models/ht-event-fallback.js.map +1 -1
- package/lib/cjs/types.d.ts +3 -8
- package/lib/esm/event-models/ht-event-custom.d.ts +1 -0
- package/lib/esm/event-models/ht-event-custom.js +2 -1
- package/lib/esm/event-models/ht-event-custom.js.map +1 -1
- package/lib/esm/event-models/ht-event-fallback.d.ts +1 -0
- package/lib/esm/event-models/ht-event-fallback.js +1 -0
- package/lib/esm/event-models/ht-event-fallback.js.map +1 -1
- package/lib/esm/types.d.ts +3 -8
- package/package.json +1 -1
- package/src/event-models/ht-event-custom.ts +3 -1
- package/src/event-models/ht-event-fallback.ts +2 -0
- package/src/types.ts +3 -9
|
@@ -2,5 +2,6 @@ import { EventCustom, RequestData } from '../types';
|
|
|
2
2
|
import { HtEvent } from './ht-event';
|
|
3
3
|
export declare class HtEventCustom extends HtEvent {
|
|
4
4
|
custom_fields: Record<string, any>;
|
|
5
|
+
custom_sensitive_fields: Record<string, any>;
|
|
5
6
|
constructor(event: EventCustom, requestData: RequestData);
|
|
6
7
|
}
|
|
@@ -8,7 +8,8 @@ class HtEventCustom extends ht_event_1.HtEvent {
|
|
|
8
8
|
super(event, requestData);
|
|
9
9
|
this.type = types_1.EventType.WebEvent;
|
|
10
10
|
this.action = types_1.EventAction.Custom;
|
|
11
|
-
this.custom_fields = event.customFields;
|
|
11
|
+
this.custom_fields = event.customFields || {};
|
|
12
|
+
this.custom_sensitive_fields = event.customSensitiveFields || {};
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
exports.HtEventCustom = HtEventCustom;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-custom.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-custom.ts"],"names":[],"mappings":";;;AAAA,oCAA2E;AAC3E,yCAAoC;AAEpC,MAAa,aAAc,SAAQ,kBAAO;
|
|
1
|
+
{"version":3,"file":"ht-event-custom.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-custom.ts"],"names":[],"mappings":";;;AAAA,oCAA2E;AAC3E,yCAAoC;AAEpC,MAAa,aAAc,SAAQ,kBAAO;IAIxC,YAAY,KAAkB,EAAE,WAAwB;QACtD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,MAAM,CAAA;QAChC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,YAAY,IAAI,EAAE,CAAA;QAC7C,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,qBAAqB,IAAI,EAAE,CAAA;IAClE,CAAC;CACF;AAXD,sCAWC"}
|
|
@@ -8,6 +8,7 @@ class HtEventFallback extends ht_event_1.HtEvent {
|
|
|
8
8
|
super(event, requestData);
|
|
9
9
|
this.type = types_1.EventType.BotEvent;
|
|
10
10
|
this.action = types_1.EventAction.Fallback;
|
|
11
|
+
this.user_input = event.userInput;
|
|
11
12
|
this.fallback_out = event.fallbackOut;
|
|
12
13
|
this.fallback_message_id = event.fallbackMessageId;
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-fallback.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-fallback.ts"],"names":[],"mappings":";;;AAAA,oCAA6E;AAC7E,yCAAoC;AAEpC,MAAa,eAAgB,SAAQ,kBAAO;
|
|
1
|
+
{"version":3,"file":"ht-event-fallback.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-fallback.ts"],"names":[],"mappings":";;;AAAA,oCAA6E;AAC7E,yCAAoC;AAEpC,MAAa,eAAgB,SAAQ,kBAAO;IAK1C,YAAY,KAAoB,EAAE,WAAwB;QACxD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,QAAQ,CAAA;QAClC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAAA;IACpD,CAAC;CACF;AAbD,0CAaC"}
|
package/lib/cjs/types.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export declare enum KnowledgebaseFailReason {
|
|
|
95
95
|
}
|
|
96
96
|
export interface EventFallback extends HtBaseEventProps {
|
|
97
97
|
action: EventAction.Fallback;
|
|
98
|
+
userInput: string;
|
|
98
99
|
fallbackOut: number;
|
|
99
100
|
fallbackMessageId: string;
|
|
100
101
|
}
|
|
@@ -106,16 +107,10 @@ export interface EventWebview extends HtBaseEventProps {
|
|
|
106
107
|
webviewEndFailType?: string;
|
|
107
108
|
webviewEndFailMessage?: string;
|
|
108
109
|
}
|
|
109
|
-
export interface EventPropsWebview {
|
|
110
|
-
webviewThreadId: string;
|
|
111
|
-
webviewName: string;
|
|
112
|
-
webviewStepName?: string;
|
|
113
|
-
webviewEndFailType?: string;
|
|
114
|
-
webviewEndFailMessage?: string;
|
|
115
|
-
}
|
|
116
110
|
export interface EventCustom extends HtBaseEventProps {
|
|
117
111
|
action: EventAction.Custom;
|
|
118
|
-
customFields
|
|
112
|
+
customFields?: Record<string, any>;
|
|
113
|
+
customSensitiveFields?: Record<string, any>;
|
|
119
114
|
}
|
|
120
115
|
export type HtEventProps = EventFeedback | EventFlow | EventHandoff | EventHandoffOption | EventIntent | EventKeyword | EventIntentSmart | EventKnowledgeBase | EventFallback | EventWebview | EventCustom;
|
|
121
116
|
export interface RequestData {
|
|
@@ -2,5 +2,6 @@ import { EventCustom, RequestData } from '../types';
|
|
|
2
2
|
import { HtEvent } from './ht-event';
|
|
3
3
|
export declare class HtEventCustom extends HtEvent {
|
|
4
4
|
custom_fields: Record<string, any>;
|
|
5
|
+
custom_sensitive_fields: Record<string, any>;
|
|
5
6
|
constructor(event: EventCustom, requestData: RequestData);
|
|
6
7
|
}
|
|
@@ -5,7 +5,8 @@ export class HtEventCustom extends HtEvent {
|
|
|
5
5
|
super(event, requestData);
|
|
6
6
|
this.type = EventType.WebEvent;
|
|
7
7
|
this.action = EventAction.Custom;
|
|
8
|
-
this.custom_fields = event.customFields;
|
|
8
|
+
this.custom_fields = event.customFields || {};
|
|
9
|
+
this.custom_sensitive_fields = event.customSensitiveFields || {};
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=ht-event-custom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-custom.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-custom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,SAAS,EAAe,MAAM,UAAU,CAAA;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,OAAO,aAAc,SAAQ,OAAO;
|
|
1
|
+
{"version":3,"file":"ht-event-custom.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-custom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,SAAS,EAAe,MAAM,UAAU,CAAA;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,OAAO,aAAc,SAAQ,OAAO;IAIxC,YAAY,KAAkB,EAAE,WAAwB;QACtD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAA;QAChC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,YAAY,IAAI,EAAE,CAAA;QAC7C,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,qBAAqB,IAAI,EAAE,CAAA;IAClE,CAAC;CACF"}
|
|
@@ -5,6 +5,7 @@ export class HtEventFallback extends HtEvent {
|
|
|
5
5
|
super(event, requestData);
|
|
6
6
|
this.type = EventType.BotEvent;
|
|
7
7
|
this.action = EventAction.Fallback;
|
|
8
|
+
this.user_input = event.userInput;
|
|
8
9
|
this.fallback_out = event.fallbackOut;
|
|
9
10
|
this.fallback_message_id = event.fallbackMessageId;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-fallback.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-fallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,SAAS,EAAe,MAAM,UAAU,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,OAAO,eAAgB,SAAQ,OAAO;
|
|
1
|
+
{"version":3,"file":"ht-event-fallback.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-fallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,SAAS,EAAe,MAAM,UAAU,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,OAAO,eAAgB,SAAQ,OAAO;IAK1C,YAAY,KAAoB,EAAE,WAAwB;QACxD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAA;QAClC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAAA;IACpD,CAAC;CACF"}
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export declare enum KnowledgebaseFailReason {
|
|
|
95
95
|
}
|
|
96
96
|
export interface EventFallback extends HtBaseEventProps {
|
|
97
97
|
action: EventAction.Fallback;
|
|
98
|
+
userInput: string;
|
|
98
99
|
fallbackOut: number;
|
|
99
100
|
fallbackMessageId: string;
|
|
100
101
|
}
|
|
@@ -106,16 +107,10 @@ export interface EventWebview extends HtBaseEventProps {
|
|
|
106
107
|
webviewEndFailType?: string;
|
|
107
108
|
webviewEndFailMessage?: string;
|
|
108
109
|
}
|
|
109
|
-
export interface EventPropsWebview {
|
|
110
|
-
webviewThreadId: string;
|
|
111
|
-
webviewName: string;
|
|
112
|
-
webviewStepName?: string;
|
|
113
|
-
webviewEndFailType?: string;
|
|
114
|
-
webviewEndFailMessage?: string;
|
|
115
|
-
}
|
|
116
110
|
export interface EventCustom extends HtBaseEventProps {
|
|
117
111
|
action: EventAction.Custom;
|
|
118
|
-
customFields
|
|
112
|
+
customFields?: Record<string, any>;
|
|
113
|
+
customSensitiveFields?: Record<string, any>;
|
|
119
114
|
}
|
|
120
115
|
export type HtEventProps = EventFeedback | EventFlow | EventHandoff | EventHandoffOption | EventIntent | EventKeyword | EventIntentSmart | EventKnowledgeBase | EventFallback | EventWebview | EventCustom;
|
|
121
116
|
export interface RequestData {
|
package/package.json
CHANGED
|
@@ -3,11 +3,13 @@ import { HtEvent } from './ht-event'
|
|
|
3
3
|
|
|
4
4
|
export class HtEventCustom extends HtEvent {
|
|
5
5
|
custom_fields: Record<string, any>
|
|
6
|
+
custom_sensitive_fields: Record<string, any>
|
|
6
7
|
|
|
7
8
|
constructor(event: EventCustom, requestData: RequestData) {
|
|
8
9
|
super(event, requestData)
|
|
9
10
|
this.type = EventType.WebEvent
|
|
10
11
|
this.action = EventAction.Custom
|
|
11
|
-
this.custom_fields = event.customFields
|
|
12
|
+
this.custom_fields = event.customFields || {}
|
|
13
|
+
this.custom_sensitive_fields = event.customSensitiveFields || {}
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -4,11 +4,13 @@ import { HtEvent } from './ht-event'
|
|
|
4
4
|
export class HtEventFallback extends HtEvent {
|
|
5
5
|
fallback_out: number
|
|
6
6
|
fallback_message_id: string
|
|
7
|
+
user_input: string
|
|
7
8
|
|
|
8
9
|
constructor(event: EventFallback, requestData: RequestData) {
|
|
9
10
|
super(event, requestData)
|
|
10
11
|
this.type = EventType.BotEvent
|
|
11
12
|
this.action = EventAction.Fallback
|
|
13
|
+
this.user_input = event.userInput
|
|
12
14
|
this.fallback_out = event.fallbackOut
|
|
13
15
|
this.fallback_message_id = event.fallbackMessageId
|
|
14
16
|
}
|
package/src/types.ts
CHANGED
|
@@ -111,6 +111,7 @@ export enum KnowledgebaseFailReason {
|
|
|
111
111
|
|
|
112
112
|
export interface EventFallback extends HtBaseEventProps {
|
|
113
113
|
action: EventAction.Fallback
|
|
114
|
+
userInput: string
|
|
114
115
|
fallbackOut: number
|
|
115
116
|
fallbackMessageId: string
|
|
116
117
|
}
|
|
@@ -124,17 +125,10 @@ export interface EventWebview extends HtBaseEventProps {
|
|
|
124
125
|
webviewEndFailMessage?: string
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
export interface EventPropsWebview {
|
|
128
|
-
webviewThreadId: string
|
|
129
|
-
webviewName: string
|
|
130
|
-
webviewStepName?: string
|
|
131
|
-
webviewEndFailType?: string
|
|
132
|
-
webviewEndFailMessage?: string
|
|
133
|
-
}
|
|
134
|
-
|
|
135
128
|
export interface EventCustom extends HtBaseEventProps {
|
|
136
129
|
action: EventAction.Custom
|
|
137
|
-
customFields
|
|
130
|
+
customFields?: Record<string, any>
|
|
131
|
+
customSensitiveFields?: Record<string, any>
|
|
138
132
|
}
|
|
139
133
|
|
|
140
134
|
export type HtEventProps =
|