node-red-contrib-wazo-platform
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -7,3 +7,2 @@ module.exports = function(RED) { | ||
WazoWebSocketClient.eventLists.push('stt'); | ||
WazoWebSocketClient.eventLists.push('queue_log'); | ||
@@ -19,4 +18,9 @@ WazoWebSocketClient.eventLists.push('queue_caller_abandon'); | ||
WazoWebSocketClient.eventLists.push('queue_member_status'); | ||
WazoWebSocketClient.eventLists.push('line_status_updated'); | ||
WazoWebSocketClient.eventLists.push('stt'); | ||
WazoWebSocketClient.eventLists.push('user_created'); | ||
WazoWebSocketClient.eventLists.push('user_deleted'); | ||
WazoWebSocketClient.eventLists.push('user_edited'); | ||
const agent = new https.Agent({ | ||
@@ -23,0 +27,0 @@ rejectUnauthorized: false |
@@ -22,2 +22,3 @@ module.exports = function (RED) { | ||
const body = msg.payload.body; | ||
const header = msg.payload.header || 'application/json'; | ||
const url = `https://${node.conn.host}:${node.conn.port}/api/${node.serviceName}/${version}/${endpoint}`; | ||
@@ -28,3 +29,3 @@ | ||
const token = await node.conn.authenticate(); | ||
const result = await apiRequest(url, method, token, query, body); | ||
const result = await apiRequest(url, method, token, query, body, header); | ||
msg.payload = result; | ||
@@ -37,3 +38,3 @@ node.send(msg); | ||
const apiRequest = (url, method, token, query, body) => { | ||
const apiRequest = (url, method, token, query, body, header) => { | ||
const options = { | ||
@@ -43,3 +44,3 @@ method: method, | ||
headers: { | ||
'content-type': 'application/json', | ||
'content-type': header, | ||
'accept': 'application/json', | ||
@@ -46,0 +47,0 @@ 'X-Auth-Token': token |
{ | ||
"name": "node-red-contrib-wazo-platform", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "Node Red module for the Wazo Platform API", | ||
@@ -16,5 +16,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@wazo/sdk": "0.29.0", | ||
"@wazo/sdk": "0.34.46", | ||
"request": "^2.88.2", | ||
"ws": "^7.2.1" | ||
"ws": "^7.4.3" | ||
}, | ||
@@ -36,2 +36,3 @@ "keywords": [ | ||
"config": "nodes/config.js", | ||
"dtmf": "nodes/dtmf.js", | ||
"fetch_voicemail": "nodes/fetch_voicemail.js", | ||
@@ -38,0 +39,0 @@ "hangup": "nodes/hangup.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
883733
79
1844
+ Added@wazo/sdk@0.34.46(transitive)
+ Addedgetstats@1.2.0(transitive)
+ Addedgoogle-libphonenumber@3.2.39(transitive)
+ Addedjs-base64@3.7.7(transitive)
+ Addedjson-to-graphql-query@2.3.0(transitive)
+ Addedjsrsasign@9.1.9(transitive)
+ Addedsdp-transform@2.15.0(transitive)
+ Addedsip.js@0.17.1(transitive)
- Removed@wazo/sdk@0.29.0(transitive)
- Removedcrypto-js@3.3.0(transitive)
- Removedgoogle-libphonenumber@3.2.38(transitive)
- Removedjs-base64@2.6.4(transitive)
- Removedjsrsasign@8.0.24(transitive)
- Removedsip.js@0.15.10(transitive)
- Removedtslib@1.14.1(transitive)
Updated@wazo/sdk@0.34.46
Updatedws@^7.4.3