@xapp/stentor-gbm 1.45.72 → 1.45.76
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.
|
@@ -8,6 +8,7 @@ const Constants_1 = require("../../Constants");
|
|
|
8
8
|
const stentor_utils_1 = require("stentor-utils");
|
|
9
9
|
class TranslateRequest extends lib_1.Translator {
|
|
10
10
|
translate(requestBody) {
|
|
11
|
+
var _a;
|
|
11
12
|
let botRequest;
|
|
12
13
|
// These are generated by the external hook
|
|
13
14
|
const isNewSession = requestBody._chat.isNewSession;
|
|
@@ -83,6 +84,7 @@ class TranslateRequest extends lib_1.Translator {
|
|
|
83
84
|
channel
|
|
84
85
|
};
|
|
85
86
|
}
|
|
87
|
+
botRequest.attributes = { userInfo: (_a = requestBody.context) === null || _a === void 0 ? void 0 : _a.userInfo };
|
|
86
88
|
return botRequest;
|
|
87
89
|
}
|
|
88
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Translators/TranslateRequest/index.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AACpC,4CAAgD;AAShD,mDAAqC;AAErC,+CAAsG;AAEtG,iDAAsC;AAEtC,MAAa,gBAAiB,SAAQ,gBAAgC;IAC3D,SAAS,CAAC,WAAwB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Translators/TranslateRequest/index.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AACpC,4CAAgD;AAShD,mDAAqC;AAErC,+CAAsG;AAEtG,iDAAsC;AAEtC,MAAa,gBAAiB,SAAQ,gBAAgC;IAC3D,SAAS,CAAC,WAAwB;;QACrC,IAAI,UAA0G,CAAC;QAE/G,2CAA2C;QAC3C,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC;QACpD,MAAM,MAAM,GAAW,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC;QAChD,MAAM,SAAS,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YAClB,sEAAsE;YACtE,6BAA6B;YAC7B,UAAU,GAAG;gBACT,IAAI,EAAE,wBAAwB;gBAC9B,MAAM,EAAE,UAAU;gBAClB,GAAG,EAAE,SAAS;gBACd,MAAM;gBACN,SAAS;gBACT,MAAM;gBACN,QAAQ;gBACR,OAAO;aACV,CAAC;SACL;aAAM;YACH,UAAU,GAAG;gBACT,IAAI,EAAE,gBAAgB;gBACtB,QAAQ;gBACR,SAAS;gBACT,MAAM;gBACN,YAAY;gBACZ,QAAQ,EAAE,wBAAwB;gBAClC,MAAM;gBACN,QAAQ;gBACR,OAAO;aACV,CAAC;SACL;QAED,UAAU,CAAC,UAAU,GAAG,EAAE,QAAQ,EAAE,MAAA,WAAW,CAAC,OAAO,0CAAE,QAAQ,EAAE,CAAC;QAEpE,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAlFD,4CAkFC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.45.
|
|
7
|
+
"version": "1.45.76",
|
|
8
8
|
"description": "Google Business Messages channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/aws-lambda": "8.10.115",
|
|
19
19
|
"@types/chai": "4.3.5",
|
|
20
|
-
"@types/node-fetch": "2.6.
|
|
20
|
+
"@types/node-fetch": "2.6.4",
|
|
21
21
|
"@types/remove-markdown": "0.3.1",
|
|
22
22
|
"@types/sinon": "4.3.3",
|
|
23
23
|
"@types/sinon-chai": "3.2.9",
|
|
@@ -27,27 +27,27 @@
|
|
|
27
27
|
"mocha": "10.2.0",
|
|
28
28
|
"sinon": "15.0.4",
|
|
29
29
|
"sinon-chai": "3.7.0",
|
|
30
|
-
"stentor-constants": "1.57.
|
|
31
|
-
"stentor-guards": "1.57.
|
|
32
|
-
"stentor-interaction-model": "1.57.
|
|
33
|
-
"stentor-locales": "1.57.
|
|
34
|
-
"stentor-logger": "1.57.
|
|
35
|
-
"stentor-media": "1.57.
|
|
36
|
-
"stentor-models": "1.57.
|
|
37
|
-
"stentor-request": "1.57.
|
|
38
|
-
"stentor-response": "1.57.
|
|
39
|
-
"stentor-utils": "1.57.
|
|
30
|
+
"stentor-constants": "1.57.132",
|
|
31
|
+
"stentor-guards": "1.57.132",
|
|
32
|
+
"stentor-interaction-model": "1.57.132",
|
|
33
|
+
"stentor-locales": "1.57.132",
|
|
34
|
+
"stentor-logger": "1.57.132",
|
|
35
|
+
"stentor-media": "1.57.132",
|
|
36
|
+
"stentor-models": "1.57.132",
|
|
37
|
+
"stentor-request": "1.57.132",
|
|
38
|
+
"stentor-response": "1.57.133",
|
|
39
|
+
"stentor-utils": "1.57.132",
|
|
40
40
|
"ts-node": "10.9.1",
|
|
41
41
|
"typescript": "4.9.5",
|
|
42
42
|
"uuid": "9.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@xapp/patterns": "2.0.1",
|
|
46
|
-
"@xapp/stentor-actions-on-google": "1.45.
|
|
47
|
-
"@xapp/stentor-app": "1.45.
|
|
46
|
+
"@xapp/stentor-actions-on-google": "1.45.76",
|
|
47
|
+
"@xapp/stentor-app": "1.45.76",
|
|
48
48
|
"google-auth-library": "8.7.0",
|
|
49
49
|
"googleapis-common": "6.0.4",
|
|
50
|
-
"node-fetch": "2.6.
|
|
50
|
+
"node-fetch": "2.6.11",
|
|
51
51
|
"remove-markdown": "0.5.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"clean": "rm -rf ./lib/*",
|
|
68
68
|
"test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "e4aa32a585e83cc7c44495cfc0458367f9a03bc1"
|
|
71
71
|
}
|