@botfabrik/engine-webclient 4.40.1 → 4.42.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/README.md +0 -1
- package/dist/createSessionInfo.js +8 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -56,7 +56,6 @@ Beispiel:
|
|
|
56
56
|
export default async (querystrings: any): Promise<any> => {
|
|
57
57
|
const accessToken = querystrings.accessToken;
|
|
58
58
|
const userProfile: UserProfile = await fetchUserProfile(accessToken);
|
|
59
|
-
|
|
60
59
|
return {
|
|
61
60
|
'sessionInfo.user.id': userProfile.username + '@' + userProfile.domain,
|
|
62
61
|
};
|
|
@@ -23,10 +23,17 @@ const createSessionInfoBase = async (querystrings, headers, ip, clientName, envi
|
|
|
23
23
|
userAgent,
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
|
+
const firstName = querystrings.userFirstName;
|
|
27
|
+
const lastName = querystrings.userLastName;
|
|
28
|
+
const email = querystrings.userEmail;
|
|
29
|
+
const displayName = firstName && lastName ? `${firstName} ${lastName}` : 'Webseiten Besucher';
|
|
26
30
|
let user = {
|
|
27
31
|
...sessionInfo.user,
|
|
28
32
|
id: userId,
|
|
29
|
-
displayName
|
|
33
|
+
displayName,
|
|
34
|
+
...(firstName ? { firstName } : {}),
|
|
35
|
+
...(lastName ? { lastName } : {}),
|
|
36
|
+
...(email ? { email } : {}),
|
|
30
37
|
locale: (0, extractLocale_1.default)(querystrings, headers['accept-language']),
|
|
31
38
|
};
|
|
32
39
|
const contexts = sessionInfo.contexts;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botfabrik/engine-webclient",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.42.1",
|
|
4
4
|
"description": "Webclient for Botfabriks Bot Engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"update": "npx npm-check-updates -i"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@botfabrik/engine-core": "^4.
|
|
22
|
+
"@botfabrik/engine-core": "^4.41.0",
|
|
23
23
|
"@botfabrik/engine-domain": "^4.40.1",
|
|
24
|
-
"@botfabrik/engine-transcript-export": "^4.
|
|
24
|
+
"@botfabrik/engine-transcript-export": "^4.41.0",
|
|
25
25
|
"@botfabrik/engine-utils": "^4.40.1",
|
|
26
26
|
"@google-cloud/speech": "^5.4.0",
|
|
27
27
|
"accept-language-parser": "^1.5.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"rimraf": "^4.4.0",
|
|
42
42
|
"typescript": "^4.9.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "da5c46286354ce35362e45d243da8229a2509d6e"
|
|
45
45
|
}
|