@fonoster/voice 0.3.3 → 0.3.6-alpha.11
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/dist/play/play.js +2 -2
- package/dist/record/record.js +2 -2
- package/dist/verb.js +1 -1
- package/package.json +5 -5
package/dist/play/play.js
CHANGED
|
@@ -24,13 +24,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
const verb_1 = require("../verb");
|
|
25
25
|
const utils_1 = require("../utils");
|
|
26
26
|
const asserts_1 = require("../asserts");
|
|
27
|
-
const
|
|
27
|
+
const bson_objectid_1 = __importDefault(require("bson-objectid"));
|
|
28
28
|
const pubsub_js_1 = __importDefault(require("pubsub-js"));
|
|
29
29
|
class PlayVerb extends verb_1.Verb {
|
|
30
30
|
run(media, options = {}) {
|
|
31
31
|
(0, asserts_1.assertsValueIsPositive)("offset", options.offset);
|
|
32
32
|
(0, asserts_1.assertsValueIsPositive)("skip", options.skip);
|
|
33
|
-
const playbackId = options.playbackId ? options.playbackId : (0,
|
|
33
|
+
const playbackId = options.playbackId ? options.playbackId : (0, bson_objectid_1.default)();
|
|
34
34
|
// Renaming properties to match the API query parameters
|
|
35
35
|
const opts = {
|
|
36
36
|
media,
|
package/dist/record/record.js
CHANGED
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
* See the License for the specific language governing permissions and
|
|
22
22
|
* limitations under the License.
|
|
23
23
|
*/
|
|
24
|
-
const
|
|
24
|
+
const bson_objectid_1 = __importDefault(require("bson-objectid"));
|
|
25
25
|
const verb_1 = require("../verb");
|
|
26
26
|
const utils_1 = require("../utils");
|
|
27
27
|
const asserts_1 = require("../asserts");
|
|
@@ -31,7 +31,7 @@ class RecordVerb extends verb_1.Verb {
|
|
|
31
31
|
(0, asserts_1.assertsFinishOnKeyIsChar)(options.finishOnKey);
|
|
32
32
|
(0, asserts_1.assertsValueIsPositive)("maxSilence", options.maxSilence);
|
|
33
33
|
(0, asserts_1.assertsValueIsPositive)("maxDuration", options.maxDuration);
|
|
34
|
-
const name = (0,
|
|
34
|
+
const name = (0, bson_objectid_1.default)();
|
|
35
35
|
// Renaming properties to match the API query parameters
|
|
36
36
|
const opts = {
|
|
37
37
|
format: "wav",
|
package/dist/verb.js
CHANGED
|
@@ -56,7 +56,7 @@ class Verb {
|
|
|
56
56
|
}
|
|
57
57
|
async delete(apiPath, queryParameters) {
|
|
58
58
|
const url = `${this.getRequest().dialbackEnpoint}/ari/${apiPath}?${queryParameters}`;
|
|
59
|
-
logger_1.default.silly(`@fonoster/voice
|
|
59
|
+
logger_1.default.silly(`@fonoster/voice deleting [url: ${url}]`);
|
|
60
60
|
return await (0, axios_1.default)({
|
|
61
61
|
method: "delete",
|
|
62
62
|
url,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/voice",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6-alpha.11",
|
|
4
4
|
"description": "Voice verbs",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"url": "https://github.com/fonoster/fonoster/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@fonoster/common": "^0.3.
|
|
33
|
-
"@fonoster/logger": "^0.3.
|
|
32
|
+
"@fonoster/common": "^0.3.6-alpha.11",
|
|
33
|
+
"@fonoster/logger": "^0.3.6-alpha.11",
|
|
34
34
|
"@opentelemetry/api": "^1.0.2",
|
|
35
35
|
"@opentelemetry/node": "^0.24.0",
|
|
36
36
|
"@opentelemetry/plugin-express": "^0.15.0",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@opentelemetry/sdk-trace-base": "0.25.0",
|
|
42
42
|
"@opentelemetry/semantic-conventions": "0.25.0",
|
|
43
43
|
"@opentelemetry/tracing": "^0.24.0",
|
|
44
|
+
"bson-objectid": "^2.0.2",
|
|
44
45
|
"deepmerge": "^4.2.2",
|
|
45
46
|
"express": "^4.17.1",
|
|
46
47
|
"express-ws": "^4.0.0",
|
|
47
|
-
"objectid": "^3.2.1",
|
|
48
48
|
"pubsub-js": "^1.9.3",
|
|
49
49
|
"sync": "^0.2.5"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "e5f462ddb2ec0910e5554b73940099dabeafbca1",
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/pubsub-js": "^1.8.2"
|
|
54
54
|
}
|