stentor-models 1.53.0 → 1.53.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/Crm.d.ts +2 -17
- package/lib/Crm.js +0 -1
- package/lib/Crm.js.map +1 -1
- package/lib/Message.d.ts +6 -0
- package/lib/Request/Request.d.ts +6 -0
- package/package.json +2 -2
package/lib/Crm.d.ts
CHANGED
|
@@ -1,29 +1,14 @@
|
|
|
1
1
|
/*! Copyright (c) 2022, XAPPmedia */
|
|
2
|
+
import { Message } from "./Message";
|
|
2
3
|
export interface LeadFormField {
|
|
3
4
|
name: string;
|
|
4
5
|
value: string;
|
|
5
6
|
}
|
|
6
|
-
export interface CrmTranscriptAttributes {
|
|
7
|
-
[attribute: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Transcript representation of the session. The input/output is an easily readable, simplified representation
|
|
11
|
-
* of the visitor/bot "chat". This is usually emailed or sent to a CRM system or customer service for a quick overview.
|
|
12
|
-
* That is why input an output are strings.
|
|
13
|
-
*/
|
|
14
|
-
export interface CrmTranscriptExchange {
|
|
15
|
-
input: string;
|
|
16
|
-
output: string;
|
|
17
|
-
attributes?: CrmTranscriptAttributes;
|
|
18
|
-
}
|
|
19
|
-
export interface CrmTranscript {
|
|
20
|
-
items: CrmTranscriptExchange[];
|
|
21
|
-
}
|
|
22
7
|
export interface ExternalLead {
|
|
23
8
|
fields: LeadFormField[];
|
|
24
9
|
source?: string;
|
|
25
10
|
company?: string;
|
|
26
|
-
transcript?:
|
|
11
|
+
transcript?: Message[];
|
|
27
12
|
}
|
|
28
13
|
export interface CrmResponse {
|
|
29
14
|
status: "Success" | "Failure";
|
package/lib/Crm.js
CHANGED
package/lib/Crm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Crm.js","sourceRoot":"","sources":["../src/Crm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Crm.js","sourceRoot":"","sources":["../src/Crm.ts"],"names":[],"mappings":""}
|
package/lib/Message.d.ts
CHANGED
|
@@ -22,4 +22,10 @@ export interface Message {
|
|
|
22
22
|
* Optional, more detailed information about the message
|
|
23
23
|
*/
|
|
24
24
|
response?: ResponseOutput;
|
|
25
|
+
/**
|
|
26
|
+
* Optional, additional attributes that can exist on the message.
|
|
27
|
+
*
|
|
28
|
+
* Useful to pass additional context.
|
|
29
|
+
*/
|
|
30
|
+
attributes?: object;
|
|
25
31
|
}
|
package/lib/Request/Request.d.ts
CHANGED
|
@@ -104,6 +104,12 @@ export interface BaseRequest {
|
|
|
104
104
|
* Currently only Google and Dialogflow perform health checks.
|
|
105
105
|
*/
|
|
106
106
|
isHealthCheck?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Optional request attributes to be passed through on the request.
|
|
109
|
+
*
|
|
110
|
+
* If the channel supports it, it will be populated.
|
|
111
|
+
*/
|
|
112
|
+
attributes?: object;
|
|
107
113
|
}
|
|
108
114
|
export interface ApiAccessData {
|
|
109
115
|
apiBaseUrl: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.53.
|
|
7
|
+
"version": "1.53.1",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "1.40.63"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "7aad19c222a8e75e78399ee9903b9ed6fc26c2cc"
|
|
37
37
|
}
|