@xapp/stentor-dialogflow-telephony 1.40.112 → 1.40.120
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
1
|
import { Request } from "stentor-models";
|
|
3
|
-
import { TranslateDialogflowV2Request } from "@xapp/stentor-dialogflow";
|
|
4
2
|
import { GoogleCloudDialogflowV2WebhookRequest } from "actions-on-google";
|
|
3
|
+
import { TranslateDialogflowV2Request } from "@xapp/stentor-dialogflow";
|
|
5
4
|
export declare class TranslateDialogflowTelephonyRequest extends TranslateDialogflowV2Request {
|
|
6
5
|
translate(requestBody: GoogleCloudDialogflowV2WebhookRequest): Request;
|
|
7
6
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TranslateDialogflowTelephonyRequest = void 0;
|
|
4
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
5
|
+
const stentor_constants_1 = require("stentor-constants");
|
|
4
6
|
const stentor_dialogflow_1 = require("@xapp/stentor-dialogflow");
|
|
5
|
-
const stentor_request_1 = require("stentor-request");
|
|
6
7
|
const Constants_1 = require("../../Constants");
|
|
7
8
|
const helpers_1 = require("./helpers");
|
|
8
9
|
class TranslateDialogflowTelephonyRequest extends stentor_dialogflow_1.TranslateDialogflowV2Request {
|
|
@@ -16,7 +17,7 @@ class TranslateDialogflowTelephonyRequest extends stentor_dialogflow_1.Translate
|
|
|
16
17
|
// Overrides
|
|
17
18
|
request.isNewSession = (0, helpers_1.getNewSession)(requestBody);
|
|
18
19
|
if ((0, helpers_1.isLaunchRequest)(requestBody)) {
|
|
19
|
-
request.type =
|
|
20
|
+
request.type = stentor_constants_1.LAUNCH_REQUEST_TYPE;
|
|
20
21
|
}
|
|
21
22
|
// Override locale. It's not the same as the Google device.
|
|
22
23
|
request.locale = (0, helpers_1.getLocale)(requestBody);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Translators/TranslateDialogflowTelephonyRequest/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Translators/TranslateDialogflowTelephonyRequest/index.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AACpC,yDAAwD;AAIxD,iEAAwE;AAExE,+CAAgE;AAChE,uCAAiF;AAEjF,MAAa,mCAAoC,SAAQ,iDAA4B;IAEjF,SAAS,CAAC,WAAkD;QACxD,qCAAqC;QACrC,MAAM,OAAO,GAAY,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAEtD,gBAAgB;QAChB,OAAO,CAAC,QAAQ,GAAG,yCAA6B,CAAC;QAEjD,iCAAiC;QACjC,OAAO,CAAC,MAAM,GAAG,IAAA,mBAAS,EAAC,WAAW,CAAC,CAAC;QAExC,YAAY;QACZ,OAAO,CAAC,YAAY,GAAG,IAAA,uBAAa,EAAC,WAAW,CAAC,CAAC;QAElD,IAAI,IAAA,yBAAe,EAAC,WAAW,CAAC,EAAE;YAC9B,OAAO,CAAC,IAAI,GAAG,uCAAmB,CAAC;SACtC;QAED,2DAA2D;QAC3D,OAAO,CAAC,MAAM,GAAG,IAAA,mBAAS,EAAC,WAAW,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AAxBD,kFAwBC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.40.
|
|
7
|
+
"version": "1.40.120",
|
|
8
8
|
"description": "Stentor Dialogflow Telephony channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"mocha": "9.2.2",
|
|
23
23
|
"sinon": "9.2.4",
|
|
24
24
|
"sinon-chai": "3.7.0",
|
|
25
|
-
"stentor-constants": "1.54.
|
|
26
|
-
"stentor-interaction-model": "1.54.
|
|
27
|
-
"stentor-media": "1.54.
|
|
28
|
-
"stentor-models": "1.54.
|
|
29
|
-
"stentor-request": "1.54.
|
|
30
|
-
"stentor-response": "1.54.
|
|
31
|
-
"stentor-utils": "1.54.
|
|
25
|
+
"stentor-constants": "1.54.13",
|
|
26
|
+
"stentor-interaction-model": "1.54.13",
|
|
27
|
+
"stentor-media": "1.54.13",
|
|
28
|
+
"stentor-models": "1.54.13",
|
|
29
|
+
"stentor-request": "1.54.13",
|
|
30
|
+
"stentor-response": "1.54.13",
|
|
31
|
+
"stentor-utils": "1.54.13",
|
|
32
32
|
"ts-node": "9.1.1",
|
|
33
33
|
"typescript": "4.6.3"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@types/sinon-chai": "3.2.8",
|
|
37
37
|
"@xapp/patterns": "1.40.101",
|
|
38
|
-
"@xapp/stentor-dialogflow": "1.40.
|
|
38
|
+
"@xapp/stentor-dialogflow": "1.40.120",
|
|
39
39
|
"actions-on-google": "2.14.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"clean": "rm -rf ./lib/*",
|
|
53
53
|
"test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "3839b35cd91acc7280c9106610a1962ff217a905"
|
|
56
56
|
}
|