Comparing version 2.5.1-beta-1 to 2.5.1
@@ -5,2 +5,10 @@ # Changelog | ||
## 2.5.1 | ||
- ADDED: typings for Verify API | ||
- ADDED: Applications API V2 support | ||
## 2.4.2 | ||
- Added message signing for for sending SMS | ||
- Added `Nexmo.generateSignature` to verify signed messages | ||
## 2.0.1 | ||
@@ -7,0 +15,0 @@ |
@@ -95,2 +95,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BY2NvdW50LmpzIl0sIm5hbWVzIjpbIkFjY291bnQiLCJjcmVkZW50aWFscyIsIm9wdGlvbnMiLCJjcmVkcyIsIl9uZXhtbyIsIm5leG1vT3ZlcnJpZGUiLCJuZXhtbyIsImluaXRpYWxpemUiLCJhcGlLZXkiLCJhcGlTZWNyZXQiLCJjYWxsYmFjayIsInJlc3QiLCJnZXQiLCJuZXdTZWNyZXQiLCJwb3N0VXNlUXVlcnlTdHJpbmciLCJtb0NhbGxCYWNrVXJsIiwiZHJDYWxsQmFja1VybCIsInRyeCIsImFwaSIsImlkIiwic2VjcmV0IiwicG9zdEpzb24iLCJkZWxldGUiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNQSxPO0FBQ0o7Ozs7OztBQU1BLG1CQUFZQyxXQUFaLEVBQXVDO0FBQUEsUUFBZEMsT0FBYyx1RUFBSixFQUFJOztBQUFBOztBQUNyQyxTQUFLQyxLQUFMLEdBQWFGLFdBQWI7QUFDQSxTQUFLQyxPQUFMLEdBQWVBLE9BQWY7O0FBRUE7QUFDQSxTQUFLRSxNQUFMLEdBQWMsS0FBS0YsT0FBTCxDQUFhRyxhQUFiLElBQThCQyxlQUE1Qzs7QUFFQSxTQUFLRixNQUFMLENBQVlHLFVBQVosQ0FDRSxLQUFLSixLQUFMLENBQVdLLE1BRGIsRUFFRSxLQUFLTCxLQUFMLEN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y5vcHRpb25zLmFwaS5nZXQoXG4gICAgICBcIi9hY2NvdW50cy9cIiArIGFwaUtleSArIFwiL3NlY3JldHMvXCIgKyBpZCxcbiAgICAgIHt9LFxuICAgICAgY2FsbGJhY2ssXG4gICAgICBmYWxzZSxcbiAgICAgIHRydWVcbiAgICApO1xuICB9XG5cbiAgY3JlYXRlU2VjcmV0KGFwaUtleSwgc2VjcmV0LCBjYWxsYmFjaykge1xuICAgIHJldHVybiB0aGlzLm9wdGlvbnMuYXBpLnBvc3RKc29uKFxuICAgICAgXCIvYWNjb3VudHMvXCIgKyBhcGlLZXkgKyBcIi9zZWNyZXRzL1wiLFxuICAgICAgeyBzZWNyZXQ6IHNlY3JldCB9LFxuICAgICAgY2FsbGJhY2ssXG4gICAgICBmYWxzZSxcbiAgICAgIHRydWVcbiAgICApO1xuICB9XG5cbiAgZGVsZXRlU2VjcmV0KGFwaUtleSwgaWQsIGNhbGxiYWNrKSB7XG4gICAgcmV0dXJuIHRoaXMub3B0aW9ucy5hcGkuZGVsZXRlKFxuICAgICAgXCIvYWNjb3VudHMvXCIgKyBhcGlLZXkgKyBcIi9zZWNyZXRzL1wiICsgaWQsXG4gICAgICBjYWxsYmFjayxcbiAgICAgIGZhbHNlLFxuICAgICAgdHJ1ZVxuICAgICk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQWNjb3VudDtcbiJdfQ== |
@@ -15,2 +15,6 @@ "use strict"; | ||
var _Utils = require("./Utils"); | ||
var _Utils2 = _interopRequireDefault(_Utils); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -130,2 +134,4 @@ | ||
return function (response) { | ||
response.count = response.total_items; | ||
response.page_index = response.page; | ||
for (var i in response._embedded.applications) { | ||
@@ -186,23 +192,4 @@ response._embedded.applications[i] = applicationResponseHandler(response._embedded.applications[i]); | ||
if ((typeof params === "undefined" ? "undefined" : _typeof(params)) !== "object") { | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: App.PATH + "/" + params, | ||
method: "GET", | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Basic " + Buffer.from(authorization).toString("base64") | ||
} | ||
}; | ||
responseParser = this._convertApplicationResponse; | ||
} else { | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: App.PATH, | ||
method: "GET", | ||
body: JSON.stringify(params), | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Basic " + Buffer.from(authorization).toString("base64") | ||
} | ||
}; | ||
responseParser = this._convertApplicationListResponse(this._convertApplicationResponse); | ||
@@ -215,2 +202,13 @@ } | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: _Utils2.default.createPathWithQuery(App.PATH, params), | ||
method: "GET", | ||
body: undefined, | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Basic " + Buffer.from(authorization).toString("base64") | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback, callback, false, responseParser); | ||
@@ -281,2 +279,2 @@ } | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BcHAuanMiXSwibmFtZXMiOlsiQXBwIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiY3JlZHMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwibmV4bW8iLCJuYW1lIiwidHlwZSIsImFuc3dlclVybCIsImV2ZW50VXJsIiwiY2FwYWJpbGl0eSIsInZvaWNlIiwid2ViaG9va3MiLCJhbnN3ZXJfdXJsIiwiYWRkcmVzcyIsImh0dHBfbWV0aG9kIiwiZXZlbnRfdXJsIiwibWVzc2FnZXMiLCJpbmJvdW5kX3VybCIsInN0YXR1c191cmwiLCJydGMiLCJjYXBhYmlsaXRpZXMiLCJhcHBsaWNhdGlvbiIsIndlYmhvb2siLCJwdXNoIiwiZW5kcG9pbnRfdHlwZSIsImVuZHBvaW50IiwiYXBwbGljYXRpb25SZXNwb25zZUh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NZXRob2RTaWduYXR1cmUobmFtZSwgdHlwZSwgYW5zd2VyVXJsLCBldmVudFVybCwgb3B0aW9ucykge1xuICAgIGxldCBjYXBhYmlsaXR5ID0ge307XG4gICAgc3dpdGNoICh0eXBlKSB7XG4gICAgICBjYXNlIFwidm9pY2VcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICB2b2ljZToge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgYW5zd2VyX3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGFuc3dlclVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJHRVRcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBldmVudF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBldmVudFVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJQT1NUXCJcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIFwibWVzc2FnZXNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBtZXNzYWdlczoge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgaW5ib3VuZF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBvcHRpb25zLmluYm91bmRfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBzdGF0dXNfdXJsOiB7XG4gICAgICAgICAgICAgICAgYWRkcmVzczogb3B0aW9ucy5zdGF0dXNfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgXCJydGNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBydGM6IHtcbiAgICAgICAgICAgIHdlYmhvb2tzOiB7XG4gICAgICAgICAgICAgIGV2ZW50X3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGV2ZW50VXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgbmFtZTogbmFtZSxcbiAgICAgIGNhcGFiaWxpdGllczogY2FwYWJpbGl0eVxuICAgIH07XG4gIH1cblxuICBfY29udmVydEFwcGxpY2F0aW9uUmVzcG9uc2UoYXBwbGljYXRpb24pIHtcbiAgICBmb3IgKGxldCBjYXBhYmlsaXR5IGluIGFwcGxpY2F0aW9uLmNhcGFiaWxpdGllcykge1xuICAgICAgYXBwbGljYXRpb25bY2FwYWJpbGl0eV0gPSB7XG4gICAgICAgIHdlYmhvb2tzOiBbXVxuICAgICAgfTtcbiAgICAgIGZvciAobGV0IHdlYmhvb2sgaW4gYXBwbGljYXRpb24uY2FwYWJpbGl0aWVzW2NhcGFiaWxpdHldLndlYmhvb2tzKSB7XG4gICAgICAgIGFwcGxpY2F0aW9uW2NhcGFiaWxpdHldLndlYmhvb2tzLnB1c2goe1xuICAgICAgICAgIGVuZHBvaW50X3R5cGU6IHdlYmhvb2ssXG4gICAgICAgICAgZW5kcG9pbnQ6XG4gICAgICAgICAgICBhcHBsaWNhdGlvbi5jYXBhYmlsaXRpZXNbY2FwYWJpbGl0eV0ud2ViaG9va3Nbd2ViaG9va10uYWRkcmVzcyxcbiAgICAgICAgICBodHRwX21ldGhvZDpcbiAgICAgICAgICAgIGFwcGxpY2F0aW9uLmNh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AgICAgIHZhciBjb25maWcgPSB7XG4gICAgICAgIGhvc3Q6IFwiYXBpLm5leG1vLmNvbVwiLFxuICAgICAgICBwYXRoOiBgJHtBcHAuUEFUSH0vJHtwYXJhbXN9YCxcbiAgICAgICAgbWV0aG9kOiBcIkdFVFwiLFxuICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgXCJDb250ZW50LVR5cGVcIjogXCJhcHBsaWNhdGlvbi9qc29uXCIsXG4gICAgICAgICAgQXV0aG9yaXphdGlvbjogYEJhc2ljICR7QnVmZmVyLmZyb20oYXV0aG9yaXphdGlvbikudG9TdHJpbmcoXG4gICAgICAgICAgICBcImJhc2U2NFwiXG4gICAgICAgICAgKX1gXG4gICAgICAgIH1cbiAgICAgIH07XG4gICAgICByZXNwb25zZVBhcnNlciA9IHRoaXMuX2NvbnZlcnRBcHBsaWNhdGlvblJlc3BvbnNlO1xuICAgIH0gZWxzZSB7XG4gICAgICB2YXIgY29uZmlnID0ge1xuICAgICAgICBob3N0OiBcImFwaS5uZXhtby5jb21cIixcbiAgICAgICAgcGF0aDogQXBwLlBBVEgsXG4gICAgICAgIG1ldGhvZDogXCJHRVRcIixcbiAgICAgICAgYm9keTogSlNPTi5zdHJpbmdpZnkocGFyYW1zKSxcbiAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgIFwiQ29udGVudC1UeXBlXCI6IFwiYXBwbGljYXRpb24vanNvblwiLFxuICAgICAgICAgIEF1dGhvcml6YXRpb246IGBCYXNpYyAke0J1ZmZlci5mcm9tKGF1dGhvcml6YXRpb24pLnRvU3RyaW5nKFxuICAgICAgICAgICAgXCJiYXNlNjRcIlxuICAgICAgICAgICl9YFxuICAgICAgICB9XG4gICAgICB9O1xuICAgICAgcmVzcG9uc2VQYXJzZXIgPSB0aGlzLl9jb252ZXJ0QXBwbGljYXRpb25MaXN0UmVzcG9uc2UoXG4gICAgICAgIHRoaXMuX2NvbnZlcnRBcHBsaWNhdGlvblJlc3BvbnNlXG4gICAgICApO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biAgfVxuICAvKipcbiAgICogQHBhcmFtIHtDcmVkZW50aWFsc30gY3JlZGVudGlhbHNcbiAgICogICAgY3JlZGVudGlhbHMgdG8gYmUgdXNlZCB3aGVuIGludGVyYWN0aW5nIHdpdGggdGhlIEFQSS5cbiAgICogQHBhcmFtIHtPYmplY3R9IG9wdGlvbnNcbiAgICogICAgQWRkaXRpb24gQXBwIG9wdGlvbnMuXG4gICAqL1xuICBjb25zdHJ1Y3RvcihjcmVkZW50aWFscywgb3B0aW9ucyA9IHt9KSB7XG4gICAgdGhpcy5jcmVkcyA9IGNyZWRlbnRpYWxzO1xuICAgIHRoaXMub3B0aW9ucyA9IG9wdGlvbnM7XG5cbiAgICAvLyBVc2VkIHRvIGZhY2lsaXRhdGUgdGVzdGluZyBvZiB0aGUgY2FsbCB0byB0aGUgdW5kZXJseWluZyBvYmplY3RcbiAgICB0aGlzLl9uZXhtbyA9IHRoaXMub3B0aW9ucy5uZXhtb092ZXJyaWRlIHx8IG5leG1vO1xuICB9XG5cbiAgX2NvbnZlcnRNZXRob2RTaWduYXR1cmUobmFtZSwgdHlwZSwgYW5zd2VyVXJsLCBldmVudFVybCwgb3B0aW9ucykge1xuICAgIGxldCBjYXBhYmlsaXR5ID0ge307XG4gICAgc3dpdGNoICh0eXBlKSB7XG4gICAgICBjYXNlIFwidm9pY2VcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICB2b2ljZToge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgYW5zd2VyX3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGFuc3dlclVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJHRVRcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBldmVudF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBldmVudFVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJQT1NUXCJcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIFwibWVzc2FnZXNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBtZXNzYWdlczoge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgaW5ib3VuZF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBvcHRpb25zLmluYm91bmRfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBzdGF0dXNfdXJsOiB7XG4gICAgICAgICAgICAgICAgYWRkcmVzczogb3B0aW9ucy5zdGF0dXNfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgXCJydGNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBydGM6IHtcbiAgICAgICAgICAgIHdlYmhvb2tzOiB7XG4gICAgICAgICAgICAgIGV2ZW50X3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGV2ZW50VXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgbmFtZTogbmFtZSxcbiAgICAgIGNhcGFiaWxpdGllczogY2FwYWJpbGl0eVxuICAgIH07XG4gIH1cblxuICBfY29udmVydEFwcGxpY2F0aW9uUmVzcG9uc2UoYXBwbGljYX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wie31cIixcbiAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgXCJDb250ZW50LVR5cGVcIjogXCJhcHBsaWNhdGlvbi9qc29uXCIsXG4gICAgICAgIEF1dGhvcml6YXRpb246IGBCYXNpYyAke0J1ZmZlci5mcm9tKGF1dGhvcml6YXRpb24pLnRvU3RyaW5nKFwiYmFzZTY0XCIpfWBcbiAgICAgIH1cbiAgICB9O1xuXG4gICAgdGhpcy5vcHRpb25zLmh0dHBDbGllbnQucmVxdWVzdChjb25maWcsIGNhbGxiYWNrKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBBcHA7XG4iXX0= |
@@ -173,2 +173,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9DYWxsc1Jlc291cmNlLmpzIl0sIm5hbWVzIjpbIkNhbGxzUmVzb3VyY2UiLCJjcmVkcyIsIm9wdGlvbnMiLCJzdHJlYW0iLCJTdHJlYW1SZXNvdXJjZSIsInRhbGsiLCJUYWxrUmVzb3VyY2UiLCJkdG1mIiwiRHRtZlJlc291cmNlIiwicGFyYW1zIiwiY2FsbGJhY2siLCJKU09OIiwic3RyaW5naWZ5IiwiY29uZmlnIiwiaG9zdCIsInBhdGgiLCJQQVRIIiwibWV0aG9kIiwiYm9keSIsImhlYWRlcnMiLCJCdWZmZXIiLCJieXRlTGVuZ3RoIiwiQXV0aG9yaXphdGlvbiIsImdlbmVyYXRlSnd0IiwiaHR0cENsaWVudCIsInJlcXVlc3QiLCJxdWVyeSIsIkVycm9yIiwicGF0aEV4dCIsIk9iamVjdCIsImtleXMiLCJsZW5ndGgiLCJxdWVyeXN0cmluZyIsImNhbGxJZCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBOzs7O0FBRUE7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7OztBQUVBOzs7SUFHTUEsYTs7O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ICAgICBob3N0OiBcImFwaS5uZXhtby5jb21cIixcbiAgICAgIHBhdGg6IGAke0NhbGxzUmVzb3VyY2UuUEFUSH0vJHtjYWxsSWR9YCxcbiAgICAgIG1ldGhvZDogXCJQVVRcIixcbiAgICAgIGJvZHk6IHBhcmFtcyxcbiAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgXCJDb250ZW50LVR5cGVcIjogXCJhcHBsaWNhdGlvbi9qc29uXCIsXG4gICAgICAgIFwiQ29udGVudC1MZW5ndGhcIjogQnVmZmVyLmJ5dGVMZW5ndGgocGFyYW1zKSxcbiAgICAgICAgQXV0aG9yaXphdGlvbjogYEJlYXJlciAke3RoaXMuY3JlZHMuZ2VuZXJhdGVKd3QoKX1gXG4gICAgICB9XG4gICAgfTtcbiAgICB0aGlzLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IENhbGxzUmVzb3VyY2U7XG4iXX0= |
@@ -65,2 +65,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9DaGFubmVsLmpzIl0sIm5hbWVzIjpbIkNoYW5uZWwiLCJjcmVkZW50aWFscyIsIm9wdGlvbnMiLCJjcmVkcyIsIl9uZXhtbyIsIm5leG1vT3ZlcnJpZGUiLCJuZXhtbyIsImluaXRpYWxpemUiLCJhcGlLZXkiLCJhcGlTZWNyZXQiLCJ0byIsImZyb20iLCJtZXNzYWdlIiwiY2FsbGJhY2siLCJwYXJhbXMiLCJhcGkiLCJwb3N0IiwiUEFUSCJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7O0FBRUE7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7OztJQUVNQSxPOzs7d0JBQ2M7QUFDaEIsYUFBTyxnQkFBUDtBQUNEOzs7QUFFR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20gXCJmc1wiO1xuaW1wb3J0IHF1ZXJ5c3RyaW5nIGZyb20gXCJxdWVyeXN0cmluZ1wiO1xuXG5jbGFzcyBDaGFubmVsIHtcbiAgc3RhdGljIGdldCBQQVRIKCkge1xuICAgIHJldHVybiBcIi92MC4xL21lc3NhZ2VzXCI7XG4gIH1cblxuICBjb25zdHJ1Y3RvcihjcmVkZW50aWFscywgb3B0aW9ucykge1xuICAgIHRoaXMuY3JlZHMgPSBjcmVkZW50aWFscztcbiAgICB0aGlzLm9wdGlvbnMgPSBvcHRpb25zO1xuXG4gICAgLy8gVXNlZCB0byBmYWNpbGl0YXRlIHRlc3Rpbmcgb2YgdGhlIGNhbGwgdG8gdGhlIHVuZGVybHlpbmcgb2JqZWN0XG4gICAgdGhpcy5fbmV4bW8gPSB0aGlzLm9wdGlvbnMubmV4bW9PdmVycmlkZSB8fCBuZXhtbztcblxuICAgIHRoaXMuX25leG1vLmluaXRpYWxpemUoXG4gICAgICB0aGlzLmNyZWRzLmFwaUtleSxcbiAgICAgIHRoaXMuY3JlZHMuYXBpU2VjcmV0LFxuICAgICAgdGhpcy5vcHRpb25zXG4gICAgKTtcbiAgfVxuXG4gIHNlbmQodG8sIGZyb20sIG1lc3NhZ2UsIGNhbGxiYWNrKSB7XG4gICAgY29uc3QgcGFyYW1zID0ge1xuICAgICAgdG86IHRvLFxuICAgICAgZnJvbTogZnJvbSxcbiAgICAgIG1lc3NhZ2U6IG1lc3NhZ2VcbiAgICB9O1xuXG4gICAgcmV0dXJuIHRoaXMub3B0aW9ucy5hcGkucG9zdChDaGFubmVsLlBBVEgsIHBhcmFtcywgY2FsbGJhY2ssIHRydWUsIHtcbiAgICAgIFwiQ29udGVudC1UeXBlXCI6IFwiYXBwbGljYXRpb24vanNvblwiXG4gICAgfSk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ2hhbm5lbDtcbiJdfQ== |
@@ -71,2 +71,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# s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0FBQ1osV0FBS0MsR0FBTCxjQUFTLE1BQVQsU0FBb0JELElBQXBCO0FBQ0Q7Ozs0QkFFYztBQUFBOztBQUFBLHlDQUFOQSxJQUFNO0FBQU5BLFlBQU07QUFBQTs7QUFDYixvQkFBS0gsR0FBTCxFQUFTSyxLQUFULGVBQWUsUUFBZixTQUE0QkYsSUFBNUI7QUFDRDs7Ozs7O2tCQUdZTCxhIiwiZmlsZSI6IkNvbnNvbGVMb2dnZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgTnVsbExvZ2dlciBmcm9tIFwiLi9OdWxsTG9nZ2VyXCI7XG5cbmNsYXNzIENvbnNvbGVMb2dnZXIgZXh0ZW5kcyBOdWxsTG9nZ2VyIHtcbiAgY29uc3RydWN0b3IoY29uc29sZU92ZXJyaWRlKSB7XG4gICAgc3VwZXIoKTtcblxuICAgIHRoaXMub3V0ID0gY29uc29sZU92ZXJyaWRlIHx8IGNvbnNvbGU7XG4gIH1cblxuICBsb2cobGV2ZWwsIC4uLmFyZ3MpIHtcbiAgICB0aGlzLm91dC5sb2coYCR7bGV2ZWx9OmAsIC4uLmFyZ3MpO1xuICB9XG5cbiAgd2FybiguLi5hcmdzKSB7XG4gICAgdGhpcy5sb2coXCJ3YXJuXCIsIC4uLmFyZ3MpO1xuICB9XG5cbiAgZXJyb3IoLi4uYXJncykge1xuICAgIHRoaXMub3V0LmVycm9yKFwiZXJyb3I6XCIsIC4uLmFyZ3MpO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IENvbnNvbGVMb2dnZXI7XG4iXX0= |
@@ -13,2 +13,6 @@ "use strict"; | ||
var _Utils = require("./Utils"); | ||
var _Utils2 = _interopRequireDefault(_Utils); | ||
var _Members = require("./Members"); | ||
@@ -18,2 +22,6 @@ | ||
var _Events = require("./Events"); | ||
var _Events2 = _interopRequireDefault(_Events); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -55,4 +63,6 @@ | ||
// Used to facilitate testing of the call to the underlying object | ||
this._nexmo = this.options.nexmoOverride || _index2.default; | ||
/** | ||
* @type Events | ||
*/ | ||
this.events = new _Events2.default(this.creds, this.options); | ||
} | ||
@@ -98,3 +108,13 @@ | ||
value: function get(query, callback) { | ||
this._nexmo.getWithQuery(Conversations.PATH, query, this.creds, this.options, callback); | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: _Utils2.default.createPathWithQuery(Conversations.PATH, query), | ||
method: "GET", | ||
body: undefined, | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Bearer " + this.creds.generateJwt() | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback); | ||
} | ||
@@ -105,3 +125,3 @@ | ||
* | ||
* @param {string} [conversationId] - The unique identifier for the conversation to update. | ||
* @param {string} conversationId - The unique identifier for the conversation to update. | ||
* @param {Object} params - Parameters used when updating the conversation. | ||
@@ -131,5 +151,32 @@ * @param {function} callback - function to be called when the request completes. | ||
/** | ||
* Record an existing conversation. | ||
* | ||
* @param {string} conversationId - The unique identifier for the conversation to record. | ||
* @param {Object} params - Parameters used when recording the conversation. | ||
* @param {function} callback - function to be called when the request completes. | ||
*/ | ||
}, { | ||
key: "record", | ||
value: function record(conversationId, params, callback) { | ||
params = JSON.stringify(params); | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: Conversations.PATH + "/" + conversationId + "/record", | ||
method: "PUT", | ||
body: params, | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Bearer " + this.creds.generateJwt() | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback); | ||
} | ||
/** | ||
* Deleta an existing conversation. | ||
* | ||
* @param {string} [conversationId] - The unique identifier for the conversation to delete. | ||
* @param {string} conversationId - The unique identifier for the conversation to delete. | ||
* @param {function} callback - function to be called when the request completes. | ||
@@ -160,2 +207,2 @@ */ | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3Vy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lmaWVyIGZvciB0aGUgY29udmVyc2F0aW9uIHRvIGRlbGV0ZS5cbiAgICogQHBhcmFtIHtmdW5jdGlvbn0gY2FsbGJhY2sgLSBmdW5jdGlvbiB0byBiZSBjYWxsZWQgd2hlbiB0aGUgcmVxdWVzdCBjb21wbGV0ZXMuXG4gICAqL1xuICBkZWxldGUoY29udmVyc2F0aW9uSWQsIGNhbGxiYWNrKSB7XG4gICAgdmFyIGNvbmZpZyA9IHtcbiAgICAgIGhvc3Q6IFwiYXBpLm5leG1vLmNvbVwiLFxuICAgICAgcGF0aDogYCR7Q29udmVyc2F0aW9ucy5QQVRIfS8ke2NvbnZlcnNhdGlvbklkfWAsXG4gICAgICBtZXRob2Q6IFwiREVMRVRFXCIsXG4gICAgICBoZWFkZXJzOiB7XG4gICAgICAgIFwiQ29udGVudC1UeXBlXCI6IFwiYXBwbGljYXRpb24vanNvblwiLFxuICAgICAgICBBdXRob3JpemF0aW9uOiBgQmVhcmVyICR7dGhpcy5jcmVkcy5nZW5lcmF0ZUp3dCgpfWBcbiAgICAgIH1cbiAgICB9O1xuXG4gICAgdGhpcy5vcHRpb25zLmh0dHBDbGllbnQucmVxdWVzdChjb25maWcsIGNhbGxiYWNrKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDb252ZXJzYXRpb25zO1xuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db252ZXJzYXRpb25zLmpzIl0sIm5hbWVzIjpbIkNvbnZlcnNhdGlvbnMiLCJjcmVkZW50aWFscyIsIm9wdGlvbnMiLCJjcmVkcyIsIm1lbWJlcnMiLCJldmVudHMiLCJwYXJhbXMiLCJjYWxsYmFjayIsIkpTT04iLCJzdHJpbmdpZnkiLCJjb25maWciLCJob3N0IiwicGF0aCIsIlBBVEgiLCJtZXRob2QiLCJib2R5IiwiaGVhZGVycyIsIkF1dGhvcml6YXRpb24iLCJnZW5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kOiBcIkRFTEVURVwiLFxuICAgICAgaGVhZGVyczoge1xuICAgICAgICBcIkNvbnRlbnQtVHlwZVwiOiBcImFwcGxpY2F0aW9uL2pzb25cIixcbiAgICAgICAgQXV0aG9yaXphdGlvbjogYEJlYXJlciAke3RoaXMuY3JlZHMuZ2VuZXJhdGVKd3QoKX1gXG4gICAgICB9XG4gICAgfTtcblxuICAgIHRoaXMub3B0aW9ucy5odHRwQ2xpZW50LnJlcXVlc3QoY29uZmlnLCBjYWxsYmFjayk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29udmVyc2F0aW9ucztcbiJdfQ== |
@@ -52,2 +52,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db252ZXJzaW9uLmpzIl0sIm5hbWVzIjpbIkNvbnZlcnNpb24iLCJjcmVkZW50aWFscyIsIm9wdGlvbnMiLCJjcmVkcyIsIl9uZXhtbyIsIm5leG1vT3ZlcnJpZGUiLCJuZXhtbyIsImluaXRpYWxpemUiLCJhcGlLZXkiLCJhcGlTZWNyZXQiLCJtZXNzYWdlX2lkIiwiZGVsaXZlcmVkIiwidGltZXN0YW1wIiwiY2FsbGJhY2siLCJzdWJtaXQiLCJ0eXBlIiwiYXBpIiwicG9zdFVzZVF1ZXJ5U3RyaW5nIiwiX2FkZExpbWl0ZWRBY2Nlc3NNZXNzYWdlVG9FcnJvcnMiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNQSxVO0FBQ0osc0JBQVlDLFdBQVosRUFBeUJDLE9BQXpCLEVBQWtDO0FBQUE7O0FBQ2hDLFNBQUtDLEtBQUwsR0FBYUYsV0FBYjtBQUNBLFNBQUtDLE9BQUwsR0FBZUEsT0FBZjs7QUFFQTtBQUNBLFNBQUtFLE1BQUwsR0FBYyxLQUFLRixPQUFMLENB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use strict"; | ||
var _HashGenerator = require("./HashGenerator"); | ||
var _HashGenerator2 = _interopRequireDefault(_HashGenerator); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -29,2 +33,3 @@ | ||
* @param {string} apiSecret - A Nexmo API Secret | ||
* @param {string} [applicationId] - A Nexmo Application ID | ||
* @param {string|Buffer} [privateKey] - When a string value is passed it should | ||
@@ -34,5 +39,7 @@ * either represent the path to the private key, or the actual | ||
* it should be the key read from the file system. | ||
* @param {string} [signatureSecret] - A Nexmo signature Secret | ||
* @param {string} [signatureMethod] - A Nexmo compatible request signing method | ||
*/ | ||
var Credentials = function () { | ||
function Credentials(apiKey, apiSecret, privateKey, applicationId) { | ||
function Credentials(apiKey, apiSecret, privateKey, applicationId, signatureSecret, signatureMethod) { | ||
_classCallCheck(this, Credentials); | ||
@@ -46,2 +53,5 @@ | ||
this.signatureSecret = signatureSecret; | ||
this.signatureMethod = signatureMethod; | ||
if (privateKey instanceof Buffer) { | ||
@@ -60,2 +70,3 @@ this.privateKey = privateKey; | ||
this._jwtGenerator = new _JwtGenerator2.default(); | ||
this._hashGenerator = new _HashGenerator2.default(); | ||
} | ||
@@ -81,7 +92,17 @@ | ||
var claims = { application_id: applicationId }; | ||
var claims = { | ||
application_id: applicationId | ||
}; | ||
var token = this._jwtGenerator.generate(privateKey, claims); | ||
return token; | ||
} | ||
}, { | ||
key: "generateSignature", | ||
value: function generateSignature(params) { | ||
var signatureSecret = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.signatureSecret; | ||
var signatureMethod = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.signatureMethod; | ||
return this._hashGenerator.generate(signatureMethod, signatureSecret, params); | ||
} | ||
/** | ||
@@ -99,2 +120,13 @@ * @private | ||
/** | ||
* @private | ||
* Used for testing purposes only. | ||
*/ | ||
}, { | ||
key: "_setHashGenerator", | ||
value: function _setHashGenerator(generator) { | ||
this._hashGenerator = generator; | ||
} | ||
/** | ||
* Ensures a credentials instance is used. | ||
@@ -111,3 +143,3 @@ * | ||
} else { | ||
return new Credentials(obj.apiKey, obj.apiSecret, obj.privateKey, obj.applicationId); | ||
return new Credentials(obj.apiKey, obj.apiSecret, obj.privateKey, obj.applicationId, obj.signatureSecret, obj.signatureMethod); | ||
} | ||
@@ -122,2 +154,2 @@ } | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9DcmVkZW50aWFscy5qcyJdLCJuYW1lcyI6WyJDcmVkZW50aWFscyIsImFwaUtleSIsImFwaVNlY3JldCIsInByaXZhdGVLZXkiLCJhcHBsaWNhdGlvbklkIiwiQnVmZmVyIiwic3RhcnRzV2l0aCIsInVuZGVmaW5lZCIsImZzIiwiZXhpc3RzU3luYyIsIkVycm9yIiwicmVhZEZpbGVTeW5jIiwiX2p3dEdlbmVyYXRvciIsIkp3dEdlbmVyYXRvciIsImNsYWltcyIsImFwcGxpY2F0aW9uX2lkIiwidG9rZW4iLCJnZW5lcmF0ZSIsImdlbmVyYXRvciIsIm9iaiJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7O0FBRUE7Ozs7QUFDQTs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7O0lBWU1BLFc7QUFDSix1QkFBWUMsTUFBWixFQUFvQkMsU0FBcEIsRUFBK0JDLFVBQS9CLEVBQTJDQyxhQUEzQyxFQUEwRDtBQUFBOztBQUN4RCxTQUFLSCxNQUFMLEdBQWNBLE1BQWQ7QUFDQSxTQUFLQyxTQUFMLEdBQWlCQSxTQUFqQjs7QUFFQSxTQUFLQyxVQUFMLEdBQWtCLElBQWxCO0FBQ0EsU0FBS0MsYUFBTCxHQUFxQkEsYUFBckI7O0FBRUEsUUFBSUQsc0JBQXNCRSxNQUExQixFQUFrQztBQUNoQyxXQUFLRixVQUFMLEdBQWtCQSxVQUFsQjtBQUNELEtBR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lb2YgQ3JlZGVudGlhbHMpIHtcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBuZXcgQ3JlZGVudGlhbHMoXG4gICAgICAgIG9iai5hcGlLZXksXG4gICAgICAgIG9iai5hcGlTZWNyZXQsXG4gICAgICAgIG9iai5wcml2YXRlS2V5LFxuICAgICAgICBvYmouYXBwbGljYXRpb25JZCxcbiAgICAgICAgb2JqLnNpZ25hdHVyZVNlY3JldCxcbiAgICAgICAgb2JqLnNpZ25hdHVyZU1ldGhvZFxuICAgICAgKTtcbiAgICB9XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ3JlZGVudGlhbHM7XG4iXX0= |
@@ -64,2 +64,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9EaXNwYXRjaC5qcyJdLCJuYW1lcyI6WyJEaXNwYXRjaCIsImNyZWRlbnRpYWxzIiwib3B0aW9ucyIsImNyZWRzIiwiX25leG1vIiwibmV4bW9PdmVycmlkZSIsIm5leG1vIiwiaW5pdGlhbGl6ZSIsImFwaUtleSIsImFwaVNlY3JldCIsInRlbXBsYXRlIiwid29ya2Zsb3ciLCJjYWxsYmFjayIsInBhcmFtcyIsImFwaSIsInBvc3QiLCJQQVRIIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7QUFFQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7O0lBRU1BLFE7Ozt3QkFDYztBQUNoQixhQUFPLGdCQUFQO0FBQ0Q7OztBQUVELG9CQUFZQyxXQUFaLEVBQXlCQyxPQUF6QixFQUFrQztBQUFBOztBQUNoQyxTQUFLQyxLQUFMLEdBQWFGLFdBQWI7QUFDQSxTQUFLQyxPQUFMLEdBQWVBLE9BQWY7O0FBRUE7QUFDQSxTQUFLRSxNQUFMLEdBQWMsS0FBS0Ys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AgIHRoaXMuY3JlZHMgPSBjcmVkZW50aWFscztcbiAgICB0aGlzLm9wdGlvbnMgPSBvcHRpb25zO1xuXG4gICAgLy8gVXNlZCB0byBmYWNpbGl0YXRlIHRlc3Rpbmcgb2YgdGhlIGNhbGwgdG8gdGhlIHVuZGVybHlpbmcgb2JqZWN0XG4gICAgdGhpcy5fbmV4bW8gPSB0aGlzLm9wdGlvbnMubmV4bW9PdmVycmlkZSB8fCBuZXhtbztcblxuICAgIHRoaXMuX25leG1vLmluaXRpYWxpemUoXG4gICAgICB0aGlzLmNyZWRzLmFwaUtleSxcbiAgICAgIHRoaXMuY3JlZHMuYXBpU2VjcmV0LFxuICAgICAgdGhpcy5vcHRpb25zXG4gICAgKTtcbiAgfVxuXG4gIGNyZWF0ZSh0ZW1wbGF0ZSwgd29ya2Zsb3csIGNhbGxiYWNrKSB7XG4gICAgY29uc3QgcGFyYW1zID0ge1xuICAgICAgdGVtcGxhdGU6IHRlbXBsYXRlLFxuICAgICAgd29ya2Zsb3c6IHdvcmtmbG93XG4gICAgfTtcblxuICAgIHJldHVybiB0aGlzLm9wdGlvbnMuYXBpLnBvc3QoRGlzcGF0Y2guUEFUSCwgcGFyYW1zLCBjYWxsYmFjaywgdHJ1ZSwge1xuICAgICAgXCJDb250ZW50LVR5cGVcIjogXCJhcHBsaWNhdGlvbi9qc29uXCJcbiAgICB9KTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBEaXNwYXRjaDtcbiJdfQ== |
@@ -79,2 +79,32 @@ "use strict"; | ||
if (this.credentials.signatureSecret && this.credentials.signatureMethod) { | ||
var splitPath = options.path.split(/\?(.+)/); | ||
var path = splitPath[0]; | ||
var params = querystring.decode(splitPath[1]); | ||
// add timestamp if not already present | ||
if (!params.timestamp) { | ||
params.timestamp = new Date().getTime() / 1000 | 0; // floor to seconds | ||
params.timestamp = params.timestamp.toString(); | ||
} | ||
// strip API Secret | ||
delete params.api_secret; | ||
var hash = this.credentials.generateSignature(params); | ||
var query = ""; | ||
// rebuild query | ||
Object.keys(params).sort().forEach(function (key) { | ||
query += "&" + key + "=" + params[key]; | ||
}); | ||
// replace the first & with ? | ||
query = query.replace(/&/i, "?"); | ||
options.path = "" + path + query + "&sig=" + hash; | ||
} | ||
this.logger.info("Request:", options, "\nBody:", endpoint.body); | ||
@@ -145,3 +175,6 @@ var request; | ||
if (status >= 500) { | ||
error = { message: "Server Error", statusCode: status }; | ||
error = { | ||
message: "Server Error", | ||
statusCode: status | ||
}; | ||
} else if (httpResponse.headers["content-type"] === "application/octet-stream") { | ||
@@ -156,7 +189,12 @@ response = data; | ||
} | ||
error = { body: data.join("") }; | ||
error = { | ||
body: data.join("") | ||
}; | ||
} else if (status === 204) { | ||
response = null; | ||
} else if (status >= 400 || status < 200) { | ||
error = { body: JSON.parse(data.join("")), headers: headers }; | ||
error = { | ||
body: JSON.parse(data.join("")), | ||
headers: headers | ||
}; | ||
} else if (method !== "DELETE") { | ||
@@ -192,3 +230,6 @@ if (!!skipJsonParsing) { | ||
if (typeof customResponseParser === "function") { | ||
response = customResponseParser(response); | ||
// don't try to parse the response on errors | ||
if (response) { | ||
response = customResponseParser(response); | ||
} | ||
} | ||
@@ -230,3 +271,5 @@ callback(error, response); | ||
var headers = { "Content-Type": "application/json" }; | ||
var headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
if (useJwt) { | ||
@@ -239,3 +282,6 @@ headers["Authorization"] = "Bearer " + this.credentials.generateJwt(); | ||
this.request({ path: path, headers: headers }, "GET", callback); | ||
this.request({ | ||
path: path, | ||
headers: headers | ||
}, "GET", callback); | ||
} | ||
@@ -258,3 +304,6 @@ }, { | ||
this.request({ path: path, headers: headers }, "DELETE", callback); | ||
this.request({ | ||
path: path, | ||
headers: headers | ||
}, "DELETE", callback); | ||
} | ||
@@ -310,3 +359,3 @@ }, { | ||
key: "post", | ||
value: function post(path, params, callback, useJwt, headers) { | ||
value: function post(path, params, callback, useJwt) { | ||
var qs = {}; | ||
@@ -325,15 +374,6 @@ if (!useJwt) { | ||
headers = headers || {}; | ||
if (useJwt) { | ||
headers["Authorization"] = "Bearer " + this.credentials.generateJwt(); | ||
} | ||
var encodedParams = void 0; | ||
if (headers["Content-Type"] == "application/json") { | ||
encodedParams = JSON.stringify(params); | ||
} else { | ||
encodedParams = querystring.stringify(params); | ||
} | ||
this.request({ path: path, body: encodedParams, headers: headers }, "POST", callback); | ||
this.request({ | ||
path: path, | ||
body: querystring.stringify(params) | ||
}, "POST", callback); | ||
} | ||
@@ -356,3 +396,5 @@ }, { | ||
var headers = { "Content-Type": "application/json" }; | ||
var headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
if (useBasicAuth) { | ||
@@ -379,3 +421,5 @@ headers["Authorization"] = "Basic " + Buffer.from(this.credentials.apiKey + ":" + this.credentials.apiSecret).toString("base64"); | ||
this.request({ path: path }, "POST", callback); | ||
this.request({ | ||
path: path | ||
}, "POST", callback); | ||
} | ||
@@ -389,2 +433,2 @@ }]); | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9IdHRwQ2xpZW50LmpzIl0sIm5hbWVzIjpbImh0dHBzIiwicmVxdWlyZSIsImh0dHAiLCJyZXF1ZXN0IiwicXVlcnlzdHJpbmciLCJIdHRwQ2xpZW50Iiwib3B0aW9ucyIsImNyZWRlbnRpYWxzIiwiaG9zdCIsInBvcnQiLCJoZWFkZXJzIiwiQWNjZXB0IiwibG9nZ2VyIiwidGltZW91dCIsInJlcXVlc3RMaWIiLCJ1c2VyQWdlbnQiLCJlbmRwb2ludCIsIm1ldGhvZCIsImNhbGxiYWNrIiwic2tpcEpzb25QYXJzaW5nIiwiY3VzdG9tUmVzcG9uc2VQYXJzZXIiLCJwYXRoIiwiT2JqZWN0IiwiYXNzaWduIiwidW5kZWZpbmVkIiwia2V5cyIsImZvckVhY2giLCJrZXkiLCJpbmZvIiwiYm9keSIsImVuZC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ICsgdGhpcy5jcmVkZW50aWFscy5hcGlTZWNyZXRcbiAgICAgICkudG9TdHJpbmcoXCJiYXNlNjRcIil9YDtcbiAgICB9XG5cbiAgICB0aGlzLnJlcXVlc3QoXG4gICAgICB7XG4gICAgICAgIHBhdGg6IHBhdGgsXG4gICAgICAgIGJvZHk6IEpTT04uc3RyaW5naWZ5KHBhcmFtcyksXG4gICAgICAgIGhlYWRlcnNcbiAgICAgIH0sXG4gICAgICBcIlBPU1RcIixcbiAgICAgIGNhbGxiYWNrXG4gICAgKTtcbiAgfVxuXG4gIHBvc3RVc2VRdWVyeVN0cmluZyhwYXRoLCBwYXJhbXMsIGNhbGxiYWNrLCB1c2VKd3QpIHtcbiAgICBwYXJhbXMgPSBwYXJhbXMgfHwge307XG4gICAgaWYgKCF1c2VKd3QpIHtcbiAgICAgIHBhcmFtc1tcImFwaV9rZXlcIl0gPSB0aGlzLmNyZWRlbnRpYWxzLmFwaUtleTtcbiAgICAgIHBhcmFtc1tcImFwaV9zZWNyZXRcIl0gPSB0aGlzLmNyZWRlbnRpYWxzLmFwaVNlY3JldDtcbiAgICB9XG5cbiAgICBwYXRoID0gcGF0aCArIFwiP1wiICsgcXVlcnlzdHJpbmcuc3RyaW5naWZ5KHBhcmFtcyk7XG5cbiAgICB0aGlzLnJlcXVlc3QoXG4gICAgICB7XG4gICAgICAgIHBhdGg6IHBhdGhcbiAgICAgIH0sXG4gICAgICBcIlBPU1RcIixcbiAgICAgIGNhbGxiYWNrXG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBIdHRwQ2xpZW50O1xuIl19 |
@@ -64,2 +64,2 @@ "use strict"; | ||
module.exports = JwtGenerator; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Kd3RHZW5lcmF0b3IuanMiXSwibmFtZXMiOlsiSnd0R2VuZXJhdG9yIiwiY2VydCIsImNsYWltcyIsIkJ1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KiBKV1QuXG4gICAqXG4gICAqIEByZXR1cm5zIHtTdHJpbmd9IHRoZSBnZW5lcmF0ZWQgdG9rZW5cbiAgICovXG4gIGdlbmVyYXRlKGNlcnQsIGNsYWltcyA9IHt9KSB7XG4gICAgaWYgKCEoY2VydCBpbnN0YW5jZW9mIEJ1ZmZlcikpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcImNlcnQgbXVzdCBiZSBvZiB0eXBlIEJ1ZmZlclwiKTtcbiAgICB9XG4gICAgaWYgKHR5cGVvZiBjbGFpbXMgIT09IFwib2JqZWN0XCIpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcImNsYWltcyBtdXN0IGJlIG9mIHR5cGUgb2JqZWN0XCIpO1xuICAgIH1cblxuICAgIHZhciB0b1NpZ24gPSB7XG4gICAgICBpYXQ6IGNsYWltcy5pc3N1ZWRBdCB8fCBwYXJzZUludChEYXRlLm5vdygpIC8gMTAwMCwgMTApLFxuICAgICAganRpOiBjbGFpbXMuanRpIHx8IHV1aWQudjEoKVxuICAgIH07XG4gICAgT2JqZWN0LmtleXMoY2xhaW1zKS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICB0b1NpZ25ba2V5XSA9IGNsYWltc1trZXldO1xuICAgIH0pO1xuXG4gICAgdmFyIHRva2VuID0gand0LnNpZ24odG9TaWduLCBjZXJ0LCB7IGFsZ29yaXRobTogXCJSUzI1NlwiIH0pO1xuICAgIHJldHVybiB0b2tlbjtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IEp3dEdlbmVyYXRvcjtcbiJdfQ== |
@@ -139,2 +139,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZWRpYS5qcyJdLCJuYW1lcyI6WyJNZWRpYSIsImNyZWRlbnRpYWxzIiwib3B0aW9ucyIsImNyZWRzIiwiX25leG1vIiwibmV4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lcnMsIGNhbGxiYWNrLCBza2lwSnNvblBhcnNpbmcpIHtcbiAgICBoZWFkZXJzID0gT2JqZWN0LmFzc2lnbihcbiAgICAgIHtcbiAgICAgICAgXCJDb250ZW50LVR5cGVcIjogXCJhcHBsaWNhdGlvbi9qc29uXCIsXG4gICAgICAgIEF1dGhvcml6YXRpb246IGBCZWFyZXIgJHt0aGlzLmNyZWRzLmdlbmVyYXRlSnd0KCl9YFxuICAgICAgfSxcbiAgICAgIGhlYWRlcnNcbiAgICApO1xuXG4gICAgbGV0IHJlcSA9IHt9O1xuICAgIGlmICh2ZXJiLnRvVXBwZXJDYXNlKCkgPT09IFwiR0VUXCIpIHtcbiAgICAgIGlmIChPYmplY3Qua2V5cyhvcHRpb25zKS5sZW5ndGgpIHtcbiAgICAgICAgcGF0aCA9IHBhdGggKyBcIj9cIiArIHF1ZXJ5c3RyaW5nLnN0cmluZ2lmeShvcHRpb25zKTtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgcmVxW1wiYm9keVwiXSA9IEpTT04uc3RyaW5naWZ5KG9wdGlvbnMpO1xuICAgIH1cblxuICAgIHJlcVtcInBhdGhcIl0gPSBwYXRoO1xuICAgIHJlcVtcImhlYWRlcnNcIl0gPSBoZWFkZXJzO1xuXG4gICAgcmV0dXJuIHRoaXMub3B0aW9ucy5hcGkucmVxdWVzdChyZXEsIHZlcmIsIGNhbGxiYWNrLCBza2lwSnNvblBhcnNpbmcpO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE1lZGlhO1xuIl19 |
@@ -13,2 +13,6 @@ "use strict"; | ||
var _Utils = require("./Utils"); | ||
var _Utils2 = _interopRequireDefault(_Utils); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -46,10 +50,8 @@ | ||
this.options = options; | ||
this._nexmo = this.options.nexmoOverride || _index2.default; | ||
} | ||
/** | ||
* Adds a member to a conversation. | ||
* Creates a member in a conversation. | ||
* | ||
* @param {string} [conversationId] - The unique identifier for the conversation | ||
* @param {string} conversationId - The unique identifier for the conversation | ||
* @param {Object} params - Parameters used when adding a member to the conversation. See https://ea.developer.nexmo.com/api/conversation#add-a-user-to-a-conversation for more information. | ||
@@ -61,4 +63,4 @@ * @param {function} callback - function to be called when the request completes. | ||
_createClass(Members, [{ | ||
key: "add", | ||
value: function add(conversationId, params, callback) { | ||
key: "create", | ||
value: function create(conversationId, params, callback) { | ||
params = JSON.stringify(params); | ||
@@ -79,6 +81,14 @@ | ||
// backwards compatibility to 2.4.0-beta1. Remove for 3.0.0 | ||
}, { | ||
key: "add", | ||
value: function add(conversationId, params, callback) { | ||
this.create(conversationId, params, callback); | ||
} | ||
/** | ||
* Get an existing member. | ||
* | ||
* @param {string} [conversationId] - The unique identifier for the conversation | ||
* @param {string} conversationId - The unique identifier for the conversation | ||
* @param {string|object} query - The unique identifier for the member to retrieve | ||
@@ -93,4 +103,66 @@ * or a set of filter parameters for the query. For more information | ||
value: function get(conversationId, query, callback) { | ||
this._nexmo.getWithQuery(Members.PATH.replace("{conversation_uuid}", conversationId), query, this.creds, this.options, callback); | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: _Utils2.default.createPathWithQuery(Members.PATH.replace("{conversation_uuid}", conversationId), query), | ||
method: "GET", | ||
body: undefined, | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Bearer " + this.creds.generateJwt() | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback); | ||
} | ||
/** | ||
* Update an existing member. | ||
* | ||
* @param {string} conversationId - The unique identifier for the conversation to update the member in. | ||
* @param {string} memberId - The unique identifier for the member to update. | ||
* @param {Object} params - Parameters used when updating the member. | ||
* @param {function} callback - function to be called when the request completes. | ||
*/ | ||
}, { | ||
key: "update", | ||
value: function update(conversationId, memberId, params, callback) { | ||
params = JSON.stringify(params); | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: Members.PATH.replace("{conversation_uuid}", conversationId) + "/" + memberId, | ||
method: "PUT", | ||
body: params, | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Bearer " + this.creds.generateJwt() | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback); | ||
} | ||
/** | ||
* Deleta an existing member. | ||
* | ||
* @param {string} conversationId- The unique identifier for the conversation to delete the member from. | ||
* @param {string} memberId - The unique identifier for the member to delete. | ||
* @param {function} callback - function to be called when the request completes. | ||
*/ | ||
}, { | ||
key: "delete", | ||
value: function _delete(conversationId, memberId, callback) { | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: Members.PATH.replace("{conversation_uuid}", conversationId) + "/" + memberId, | ||
method: "DELETE", | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Bearer " + this.creds.generateJwt() | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback); | ||
} | ||
}]); | ||
@@ -103,2 +175,2 @@ | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZW1iZXJzLmpzIl0sIm5hbWVzIjpbIk1lbWJlcnMiLCJjcmVkcyIsIm9wdGlvbnMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwibmV4bW8iLCJjb252ZXJzYXRpb25JZCIsInBhcmFtcyIsImNhbGxiYWNrIiwiSlNPTiIsInN0cmluZ2lmeSIsImNvbmZpZyIsImhvc3QiLCJwYXRoIiwiUEFUSCIsInJlcGxhY2UiLCJtZXRob2QiLCJib2R5IiwiaGVhZGVycyIsIkF1dGhvcml6YXRpb24iLCJnZW5lcmF0ZUp3dCIsImh0dHBDbGllbnQiLCJyZXF1ZXN0IiwicXVlcnkiLCJnZXRXaXRoUXVlcnkiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7Ozs7O0FBRUE7OztJQUdNQSxPOzs7O0FBQ0o7Ozt3QkFHa0I7QUFDaEIsYUFBTyxpREFBUDtBQUNEOztBQUVEOzs7Oz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lcnNhdGlvbklkLSBUaGUgdW5pcXVlIGlkZW50aWZpZXIgZm9yIHRoZSBjb252ZXJzYXRpb24gdG8gZGVsZXRlIHRoZSBtZW1iZXIgZnJvbS5cbiAgICogQHBhcmFtIHtzdHJpbmd9IG1lbWJlcklkIC0gVGhlIHVuaXF1ZSBpZGVudGlmaWVyIGZvciB0aGUgbWVtYmVyIHRvIGRlbGV0ZS5cbiAgICogQHBhcmFtIHtmdW5jdGlvbn0gY2FsbGJhY2sgLSBmdW5jdGlvbiB0byBiZSBjYWxsZWQgd2hlbiB0aGUgcmVxdWVzdCBjb21wbGV0ZXMuXG4gICAqL1xuICBkZWxldGUoY29udmVyc2F0aW9uSWQsIG1lbWJlcklkLCBjYWxsYmFjaykge1xuICAgIHZhciBjb25maWcgPSB7XG4gICAgICBob3N0OiBcImFwaS5uZXhtby5jb21cIixcbiAgICAgIHBhdGg6IGAke01lbWJlcnMuUEFUSC5yZXBsYWNlKFxuICAgICAgICBcIntjb252ZXJzYXRpb25fdXVpZH1cIixcbiAgICAgICAgY29udmVyc2F0aW9uSWRcbiAgICAgICl9LyR7bWVtYmVySWR9YCxcbiAgICAgIG1ldGhvZDogXCJERUxFVEVcIixcbiAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgXCJDb250ZW50LVR5cGVcIjogXCJhcHBsaWNhdGlvbi9qc29uXCIsXG4gICAgICAgIEF1dGhvcml6YXRpb246IGBCZWFyZXIgJHt0aGlzLmNyZWRzLmdlbmVyYXRlSnd0KCl9YFxuICAgICAgfVxuICAgIH07XG5cbiAgICB0aGlzLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE1lbWJlcnM7XG4iXX0= |
@@ -120,2 +120,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIj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Nob3J0Y29kZUFsZXJ0LmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzaG9ydGNvZGUyRkEoKSB7XG4gICAgdGhpcy5fbmV4bW8uc2hvcnRjb2RlMkZBLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzaG9ydGNvZGVNYXJrZXRpbmcoKSB7XG4gICAgdGhpcy5fbmV4bW8uc2hvcnRjb2RlTWFya2V0aW5nLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgc2VhcmNoKGlkLCBjYWxsYmFjaykge1xuICAgIGlmICh0eXBlb2YgaWQgPT0gXCJzdHJpbmdcIikge1xuICAgICAgcmV0dXJuIHRoaXMub3B0aW9ucy5yZXN0LmdldChcIi9zZWFyY2gvbWVzc2FnZVwiLCB7IGlkOiBpZCB9LCBjYWxsYmFjayk7XG4gICAgfVxuXG4gICAgLy8gT3RoZXJ3aXNlIHdlIGV4cGVjdCBhbiBhcnJheVxuICAgIHJldHVybiB0aGlzLm9wdGlvbnMucmVzdC5nZXQoXCIvc2VhcmNoL21lc3NhZ2VzXCIsIHsgaWRzOiBpZCB9LCBjYWxsYmFjayk7XG4gIH1cblxuICBzZWFyY2hSZWplY3Rpb25zKHRvLCBkYXRlLCBjYWxsYmFjaykge1xuICAgIHJldHVybiB0aGlzLm9wdGlvbnMucmVzdC5nZXQoXCIvc2VhcmNoL3JlamVjdGlvbnNcIiwgeyB0bywgZGF0ZSB9LCBjYWxsYmFjayk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgTWVzc2FnZTtcbiJdfQ== |
@@ -25,2 +25,6 @@ "use strict"; | ||
var _HashGenerator = require("./HashGenerator"); | ||
var _HashGenerator2 = _interopRequireDefault(_HashGenerator); | ||
var _Message = require("./Message"); | ||
@@ -58,10 +62,2 @@ | ||
var _Conversations = require("./Conversations"); | ||
var _Conversations2 = _interopRequireDefault(_Conversations); | ||
var _Users = require("./Users"); | ||
var _Users2 = _interopRequireDefault(_Users); | ||
var _FilesResource = require("./FilesResource"); | ||
@@ -83,10 +79,2 @@ | ||
var _Channel = require("./Channel"); | ||
var _Channel2 = _interopRequireDefault(_Channel); | ||
var _Dispatch = require("./Dispatch"); | ||
var _Dispatch2 = _interopRequireDefault(_Dispatch); | ||
var _HttpClient = require("./HttpClient"); | ||
@@ -109,2 +97,3 @@ | ||
var jwtGeneratorInstance = new _JwtGenerator2.default(); | ||
var hashGeneratorInstance = new _HashGenerator2.default(); | ||
@@ -166,9 +155,5 @@ var Nexmo = function () { | ||
this.calls = new _CallsResource2.default(this.credentials, this.options); | ||
this.conversations = new _Conversations2.default(this.credentials, this.options); | ||
this.users = new _Users2.default(this.credentials, this.options); | ||
this.files = new _FilesResource2.default(this.credentials, this.options); | ||
this.conversion = new _Conversion2.default(this.credentials, this.options); | ||
this.media = new _Media2.default(this.credentials, this.options); | ||
this.channel = new _Channel2.default(this.credentials, this.options); | ||
this.dispatch = new _Dispatch2.default(this.credentials, this.options); | ||
this.redact = new _Redact2.default(this.credentials, this.options); | ||
@@ -195,3 +180,2 @@ | ||
_createClass(Nexmo, [{ | ||
@@ -207,2 +191,16 @@ key: "generateJwt", | ||
} | ||
/** | ||
* Generate a Signature Hash. | ||
* | ||
* @param {Object} params - params to generate hash from | ||
* | ||
* @returns {String} the generated token | ||
*/ | ||
}, { | ||
key: "generateSignature", | ||
value: function generateSignature(params) { | ||
return this.credentials.generateSignature(params); | ||
} | ||
}]); | ||
@@ -235,4 +233,17 @@ | ||
/** | ||
* Generate a Signature Hash. | ||
* | ||
* @param {String} method - the method to be used when creating the hash | ||
* @param {String} secret - the secret to be used when creating the hash | ||
* @param {Object} params - params to generate hash from | ||
* | ||
* @returns {String} the generated token | ||
*/ | ||
Nexmo.generateSignature = function (method, secret, params) { | ||
return hashGeneratorInstance.generate(method, secret, params); | ||
}; | ||
exports.default = Nexmo; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OZXhtby5qcyJdLCJuYW1lcyI6WyJqd3RHZW5lcmF0b3JJbnN0YW5jZSIsIkp3dEdlbmVyYXRvciIsIk5leG1vIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiZGVidWciLCJDcmVkZW50aWFscyIsInBhcnNlIiwibG9nZ2VyIiwiQ29uc29sZUxvZ2dlciIsIk51bGxMb2dnZXIiLCJ1c2VyQWdlbnQiLCJwYWNrYWdlRGV0YWlscyIsInJlcXVpcmUiLCJwYXRoIiwiam9pbiIsIl9fZGlybmFtZSIsInZlcnNpb24iLCJwcm9jZXNzIiwicmVwbGFjZSIsImUiLCJjb25zb2xlIiwid2FybiIsImFwcGVuZFRvVXNlckFnZW50IiwiaHR0cENsaWVudCIsIkh0dHBDbGllbnQiLCJPYmplY3QiLCJhc3NpZ24iLCJob3N0IiwiYXBpIiwicmVzdCIsIm1lc3NhZ2UiLCJNZXNzYWdlIiwidm9pY2UiLCJWb2ljZSIsIm51bWJlciIsIk51bWJlciIsInZlcmlmeSIsIlZlcmlmeSIsIm51bWJlckluc2lnaHQiLCJOdW1iZXJJbnNpZ2h0IiwiYXBwbGljYXRpb25zIiwiQXBwIiwiYWNjb3VudCIsIkFjY291bnQiLCJjYWxscyIsIkNhbGxzUmVzb3VyY2UiLCJjb252ZXJzYXRpb25zIiwiQ29udmVyc2F0aW9ucyIsInVzZXJzIiwiVXNlcnMiLCJmaWxlcyIsIkZpbGVzUmVzb3VyY2UiLCJjb252ZXJzaW9uIiwiQ29udmVyc2lvbiIsIm1lZGlhIiwiTWVkaWEiLCJjaGFubmVsIiwiQ2hhbm5lbCIsImRpc3BhdGNoIiwiRGlzcGF0Y2giLCJyZWRhY3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wiIG5vdCBmb3VuZC5gKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcHJpdmF0ZUtleSA9IGZzLnJlYWRGaWxlU3luYyhwcml2YXRlS2V5KTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIGp3dEdlbmVyYXRvckluc3RhbmNlLmdlbmVyYXRlKHByaXZhdGVLZXksIGNsYWltcyk7XG59O1xuXG4vKipcbiAqIEdlbmVyYXRlIGEgU2lnbmF0dXJlIEhhc2guXG4gKlxuICogQHBhcmFtIHtTdHJpbmd9IG1ldGhvZCAtIHRoZSBtZXRob2QgdG8gYmUgdXNlZCB3aGVuIGNyZWF0aW5nIHRoZSBoYXNoXG4gKiBAcGFyYW0ge1N0cmluZ30gc2VjcmV0IC0gdGhlIHNlY3JldCB0byBiZSB1c2VkIHdoZW4gY3JlYXRpbmcgdGhlIGhhc2hcbiAqIEBwYXJhbSB7T2JqZWN0fSBwYXJhbXMgLSBwYXJhbXMgdG8gZ2VuZXJhdGUgaGFzaCBmcm9tXG4gKlxuICogQHJldHVybnMge1N0cmluZ30gdGhlIGdlbmVyYXRlZCB0b2tlblxuICovXG5OZXhtby5nZW5lcmF0ZVNpZ25hdHVyZSA9IChtZXRob2QsIHNlY3JldCwgcGFyYW1zKSA9PiB7XG4gIHJldHVybiBoYXNoR2VuZXJhdG9ySW5zdGFuY2UuZ2VuZXJhdGUobWV0aG9kLCBzZWNyZXQsIHBhcmFtcyk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBOZXhtbztcbiJdfQ== |
@@ -115,2 +115,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXIuanMiXSwibmFtZXMiOlsiTnVtYmVyIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiY3JlZHMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwibmV4bW8iLCJpbml0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vLmdldFBob25lUHJpY2luZy5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgZ2V0KCkge1xuICAgIHRoaXMuX25leG1vLmdldE51bWJlcnMuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cblxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHNlYXJjaCgpIHtcbiAgICB0aGlzLl9uZXhtby5zZWFyY2hOdW1iZXJzLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBidXkoKSB7XG4gICAgdGhpcy5fbmV4bW8uYnV5TnVtYmVyLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBjYW5jZWwoKSB7XG4gICAgdGhpcy5fbmV4bW8uY2FuY2VsTnVtYmVyLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICB1cGRhdGUoKSB7XG4gICAgdGhpcy5fbmV4bW8udXBkYXRlTnVtYmVyLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE51bWJlcjtcbiJdfQ== |
@@ -113,2 +113,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXJJbnNpZ2h0LmpzIl0sIm5hbWVzIjpbIk51bWJlckluc2lnaHQiLCJjcmVkZW50aWFscyIsIm9wdGlvbnMiLC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gICAgICAgIEFuIElTTyAzMTY2IEFscGhhIDIgY291bnRyeSBjb2RlXG4gICAqICAgICAgICAgICAgICAgICBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fMzE2Ni0xX2FscGhhLTJcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuIGlwIC0gJ2FkdmFuY2VkJyBvbmx5LlxuICAgKiAgICAgICAgICAgICAgICAgVGhlIElQIGFkZHJlc3MgaW4gSVB2NCBub3RhdGlvbiBvZiB0aGUgZW5kcG9pbnQgdGhlXG4gICAqICAgICAgICAgICAgICAgICB1c2VyIGNvbm5lY3RlZCBmcm9tLlxuICAgKiBAcGFyYW0ge0FycmF5fSAgb3B0aW9ucy5mZWF0dXJlcyAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIEFycmF5IGRldGFpbGluZyB0aGUgaW5mb3JtYXRpb24geW91IHdhbnQgZm9yIHRoaXMgcGhvbmVcbiAgICogICAgICAgICAgICAgICAgIG51bWJlci4gUG9zc2libGUgQXJyYXkgZWxlbWVudHMgYXJlOlxuICAgKiAgICAgICAgICAgICAgICAgLSB0eXBlOiBudW1iZXIgaXMgb25lIG9mIHRoZSBmb2xsb3dpbmc6IG1vYmlsZSwgbGFuZGxpbmUsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAgICBsYW5kbGluZV9wcmVtaXVtIG9yIHVua25vd24gcGhvbmUgbnVtYmVyLlxuICAgKiAgICAgICAgICAgICAgICAgLSB2YWxpZDogbnVtYmVyIGV4aXN0cy5cbiAgICogICAgICAgICAgICAgICAgIC0gcmVhY2hhYmxlOiBpcyBudW1iZXIgYXZhaWxhYmxlIG5vdy5cbiAgICogICAgICAgICAgICAgICAgIC0gY2FycmllcjogdGhlIE1DQ01OQyBmb3IgdGhlIGNhcnJpZXIgbnVtYmVyIGlzIHJlZ2lzdGVyZWRcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpdGguIF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T0gXCJhZHZhbmNlZFwiKSB7XG4gICAgICAgIGNvbnNvbGUud2FybihcbiAgICAgICAgICAnREVQUkVDQVRJT04gV0FSTklORzogTnVtYmVyIEluc2lnaHQgQWR2YW5jZWQgd2l0aCBhIGxldmVsIG9mIFwiYWR2YW5jZWRcIiB3aWxsIGJlIHN5bmNocm9ub3VzIGluIHYyLjArLiBDb25zaWRlciB1c2luZyB0aGUgbGV2ZWwgXCJhZHZhbmNlZEFzeW5jXCIgdG8ga2VlcCB1c2luZyB0aGUgYXN5bmMgb3B0aW9uLidcbiAgICAgICAgKTtcbiAgICAgIH1cbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRBZHZhbmNlZEFzeW5jLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICAgIH0gZWxzZSBpZiAobGV2ZWwgPT09IFwiYWR2YW5jZWRTeW5jXCIpIHtcbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRBZHZhbmNlZC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9IGVsc2UgaWYgKGxldmVsID09PSBcInN0YW5kYXJkXCIpIHtcbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRTdGFuZGFyZC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5fbmV4bW8ubnVtYmVySW5zaWdodEJhc2ljLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICAgIH1cbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXJJbnNpZ2h0O1xuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXJJbnNpZ2h0LmpzIl0sIm5hbWVzIjpbIk51bWJlckluc2lnaHQiLCJjcmVkZW50aWFscyIsIm9wdGlvbnMiL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AgKiAgICAgICAgICAgICAgICAgQW4gSVNPIDMxNjYgQWxwaGEgMiBjb3VudHJ5IGNvZGVcbiAgICogICAgICAgICAgICAgICAgIGh0dHBzOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL0lTT18zMTY2LTFfYWxwaGEtMlxuICAgKiBAcGFyYW0ge3N0cmluZ30gb3B0aW9ucy4gaXAgLSAnYWR2YW5jZWQnIG9ubHkuXG4gICAqICAgICAgICAgICAgICAgICBUaGUgSVAgYWRkcmVzcyBpbiBJUHY0IG5vdGF0aW9uIG9mIHRoZSBlbmRwb2ludCB0aGVcbiAgICogICAgICAgICAgICAgICAgIHVzZXIgY29ubmVjdGVkIGZyb20uXG4gICAqIEBwYXJhbSB7QXJyYXl9ICBvcHRpb25zLmZlYXR1cmVzIC0gJ2FkdmFuY2VkJyBvbmx5LlxuICAgKiAgICAgICAgICAgICAgICAgQW4gQXJyYXkgZGV0YWlsaW5nIHRoZSBpbmZvcm1hdGlvbiB5b3Ugd2FudCBmb3IgdGhpcyBwaG9uZVxuICAgKiAgICAgICAgICAgICAgICAgbnVtYmVyLiBQb3NzaWJsZSBBcnJheSBlbGVtZW50cyBhcmU6XG4gICAqICAgICAgICAgICAgICAgICAtIHR5cGU6IG51bWJlciBpcyBvbmUgb2YgdGhlIGZvbGxvd2luZzogbW9iaWxlLCBsYW5kbGluZSxcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgIGxhbmRsaW5lX3ByZW1pdW0gb3IgdW5rbm93biBwaG9uZSBudW1iZXIuXG4gICAqICAgICAgICAgICAgICAgICAtIHZhbGlkOiBudW1iZXIgZXhpc3RzLlxuICAgKiAgICAgICAgICAgICAgICAgLSByZWFjaGFibGU6IGlzIG51bWJlciBhdmFpbGFibGUgbm93LlxuICAgKiAgICAgICAgICAgICAgICAgLSBjYXJyaWVyOiB0aGUgTUNDTU5DIGZvciB0aGUgY2FycmllciBudW1iZXIgaXMgcmVnaXN0ZXJlZFxuICAgKiAgICAgICAgICAgICA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AgaWYgKGxldmVsID09PSBcImFkdmFuY2VkXCIpIHtcbiAgICAgICAgY29uc29sZS53YXJuKFxuICAgICAgICAgICdERVBSRUNBVElPTiBXQVJOSU5HOiBOdW1iZXIgSW5zaWdodCBBZHZhbmNlZCB3aXRoIGEgbGV2ZWwgb2YgXCJhZHZhbmNlZFwiIHdpbGwgYmUgc3luY2hyb25vdXMgaW4gdjIuMCsuIENvbnNpZGVyIHVzaW5nIHRoZSBsZXZlbCBcImFkdmFuY2VkQXN5bmNcIiB0byBrZWVwIHVzaW5nIHRoZSBhc3luYyBvcHRpb24uJ1xuICAgICAgICApO1xuICAgICAgfVxuICAgICAgdGhpcy5fbmV4bW8ubnVtYmVySW5zaWdodEFkdmFuY2VkQXN5bmMuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gICAgfSBlbHNlIGlmIChsZXZlbCA9PT0gXCJhZHZhbmNlZFN5bmNcIikge1xuICAgICAgdGhpcy5fbmV4bW8ubnVtYmVySW5zaWdodEFkdmFuY2VkLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICAgIH0gZWxzZSBpZiAobGV2ZWwgPT09IFwic3RhbmRhcmRcIikge1xuICAgICAgdGhpcy5fbmV4bW8ubnVtYmVySW5zaWdodFN0YW5kYXJkLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLl9uZXhtby5udW1iZXJJbnNpZ2h0QmFzaWMuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gICAgfVxuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE51bWJlckluc2lnaHQ7XG4iXX0= |
@@ -72,2 +72,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9SZWRhY3QuanMiXSwibmFtZXMi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xuICAgICAgeyBpZCwgcHJvZHVjdCwgLi4ub3B0cyB9LFxuICAgICAgZnVuY3Rpb24oZXJyLCByZXNwb25zZSwgYm9keSkge1xuICAgICAgICBpZiAoZXJyKSB7XG4gICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGVycik7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gY2FsbGJhY2sobnVsbCwgYm9keSk7XG4gICAgICB9XG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBSZWRhY3Q7XG4iXX0= |
@@ -13,2 +13,6 @@ "use strict"; | ||
var _Utils = require("./Utils"); | ||
var _Utils2 = _interopRequireDefault(_Utils); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -44,5 +48,2 @@ | ||
this.options = options; | ||
// Used to facilitate testing of the call to the underlying object | ||
this._nexmo = this.options.nexmoOverride || _index2.default; | ||
} | ||
@@ -88,3 +89,13 @@ | ||
value: function get(query, callback) { | ||
this._nexmo.getWithQuery(Users.PATH, query, this.creds, this.options, callback); | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: _Utils2.default.createPathWithQuery(Users.PATH, query), | ||
method: "GET", | ||
body: undefined, | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Bearer " + this.creds.generateJwt() | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback); | ||
} | ||
@@ -95,3 +106,3 @@ | ||
* | ||
* @param {string} [userId] - The unique identifier for the user to retrieve conversations for | ||
* @param {string} userId - The unique identifier for the user to retrieve conversations for | ||
* @param {function} callback - function to be called when the request completes. | ||
@@ -103,3 +114,13 @@ */ | ||
value: function getConversations(userId, callback) { | ||
this._nexmo.getWithQuery(Users.PATH + "/" + userId + "/conversations", {}, this.creds, this.options, callback); | ||
var config = { | ||
host: "api.nexmo.com", | ||
path: Users.PATH + "/" + userId + "/conversations", | ||
method: "GET", | ||
body: undefined, | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: "Bearer " + this.creds.generateJwt() | ||
} | ||
}; | ||
this.options.httpClient.request(config, callback); | ||
} | ||
@@ -110,3 +131,3 @@ | ||
* | ||
* @param {string} [userId] - The unique identifier for the user to update. | ||
* @param {string} userId - The unique identifier for the user to update. | ||
* @param {Object} params - Parameters used when updating the conversation. | ||
@@ -138,3 +159,3 @@ * @param {function} callback - function to be called when the request completes. | ||
* | ||
* @param {string} [userId] - The unique identifier for the user to delete. | ||
* @param {string} userId - The unique identifier for the user to delete. | ||
* @param {function} callback - function to be called when the request completes. | ||
@@ -165,2 +186,2 @@ */ | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Vc2Vycy5qcyJdLCJuYW1lcyI6WyJVc2VycyIsImNyZWRlbnRpYWxzIiwib3B0aW9ucyIsImNyZWRzIiwiX25leG1vIiwibmV4bW9PdmVycmlkZSIsIm5leG1vIiwicGFyYW1zIiwiY2FsbGJhY2siLCJKU09OIiwic3RyaW5naWZ5IiwiY29uZmlnIiwiaG9zdCIsInBhdGgiLCJQQVRIIiwibWV0aG9kIiwiYm9keSIsImhlYWRlcnMiLCJBdXRob3JpemF0aW9uIiwiZ2VuZXJhdGVKd3QiLCJodHRwQ2xpZW50IiwicmVxdWVzdCIsInF1ZXJ5IiwiZ2V0V2l0aFF1ZXJ5IiwidXNlcklkIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7QUFFQTs7O0lBR01BLEs7Ozt3QkFDYztBQUNoQixhQUFPLGFBQVA7QUFDRDs7QUFFRDs7Ozs7Ozs7O0FBTUEsaUJBQVlDLFdBQVosRUFBdUM7QUFBQSxRQUFkQyxPQUFjLHVFQUFKLEVBQUk7O0FBQUE7O0FBQ3JDLFNBQUtDLEtBQUwsR0FBYUYsV0FBYjtBQUNBLFNBQUtDLE9BQUwsR0FBZUEsT0FBZjs7QUF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xuICAgIH07XG5cbiAgICB0aGlzLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG5cbiAgLyoqXG4gICAqIERlbGV0YSBhbiBleGlzdGluZyB1c2VyLlxuICAgKlxuICAgKiBAcGFyYW0ge3N0cmluZ30gdXNlcklkIC0gVGhlIHVuaXF1ZSBpZGVudGlmaWVyIGZvciB0aGUgdXNlciB0byBkZWxldGUuXG4gICAqIEBwYXJhbSB7ZnVuY3Rpb259IGNhbGxiYWNrIC0gZnVuY3Rpb24gdG8gYmUgY2FsbGVkIHdoZW4gdGhlIHJlcXVlc3QgY29tcGxldGVzLlxuICAgKi9cbiAgZGVsZXRlKHVzZXJJZCwgY2FsbGJhY2spIHtcbiAgICB2YXIgY29uZmlnID0ge1xuICAgICAgaG9zdDogXCJhcGkubmV4bW8uY29tXCIsXG4gICAgICBwYXRoOiBgJHtVc2Vycy5QQVRIfS8ke3VzZXJJZH1gLFxuICAgICAgbWV0aG9kOiBcIkRFTEVURVwiLFxuICAgICAgaGVhZGVyczoge1xuICAgICAgICBcIkNvbnRlbnQtVHlwZVwiOiBcImFwcGxpY2F0aW9uL2pzb25cIixcbiAgICAgICAgQXV0aG9yaXphdGlvbjogYEJlYXJlciAke3RoaXMuY3JlZHMuZ2VuZXJhdGVKd3QoKX1gXG4gICAgICB9XG4gICAgfTtcblxuICAgIHRoaXMub3B0aW9ucy5odHRwQ2xpZW50LnJlcXVlc3QoY29uZmlnLCBjYWxsYmFjayk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgVXNlcnM7XG4iXX0= |
@@ -85,2 +85,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9WZXJpZnkuanMiXSwibmFtZXMiOlsiVmVyaWZ5IiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIi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25leG1vLmNvbnRyb2xWZXJpZnlSZXF1ZXN0LmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzZWFyY2goKSB7XG4gICAgdGhpcy5fbmV4bW8uc2VhcmNoVmVyaWZ5UmVxdWVzdC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBWZXJpZnk7XG4iXX0= |
@@ -85,2 +85,2 @@ "use strict"; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Wb2ljZS5qcyJdLCJuYW1lcyI6WyJWb2ljZSIsImNyZWRlbnRpYWxzIiwib3B0aW9ucyIsImNyZWRzIiwiX25leG1vIiwibmV4bW9PdmVycmlkZSIsIm5leG1vIiwiaW5pdGlhbGl6ZSIsImFwaUtleSIsImFwaVNlY3JldCIsInNlbmRUVFNNZXNzYWdlIiwiYXBwbHkiLCJhcmd1bWVudHMiLCJzZW5kVFRTUHJvbXB0V2l0aENhcHR1cmUiLCJzZW5kVFRTUHJvbXB0V2l0aENvbmZpcm0iLCJjYWxsIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7SUFFTUEsSztBQUNKOzs7Ozs7QUFNQSxpQkFBWUMsV0FBWixFQUF1QztBQUFBLFFBQWRDLE9BQWMsdUVBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBS0MsS0FBTCxHQUFhRixXQUFiO0FBQ0EsU0FBS0MsT0FBTCxHQUFlQSxPQUFmOztBQUVBO0FBQ0EsU0FBS0UsTUFBTCxHQUFjLEtBQUtGLE9BQUwsQ0FBYUcsYUFBYixJQUE4QkMsZUFBNUM7O0FBRUEsU0FBS0YsTUFBTCxDQUFZRyxVQUFaLEN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4bW8uaW5pdGlhbGl6ZShcbiAgICAgIHRoaXMuY3JlZHMuYXBpS2V5LFxuICAgICAgdGhpcy5jcmVkcy5hcGlTZWNyZXQsXG4gICAgICB0aGlzLm9wdGlvbnNcbiAgICApO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzZW5kVFRTTWVzc2FnZSgpIHtcbiAgICB0aGlzLl9uZXhtby5zZW5kVFRTTWVzc2FnZS5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgc2VuZFRUU1Byb21wdFdpdGhDYXB0dXJlKCkge1xuICAgIHRoaXMuX25leG1vLnNlbmRUVFNQcm9tcHRXaXRoQ2FwdHVyZS5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgc2VuZFRUU1Byb21wdFdpdGhDb25maXJtKCkge1xuICAgIHRoaXMuX25leG1vLnNlbmRUVFNQcm9tcHRXaXRoQ29uZmlybS5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgY2FsbCgpIHtcbiAgICB0aGlzLl9uZXhtby5jYWxsLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IFZvaWNlO1xuIl19 |
{ | ||
"name": "nexmo", | ||
"author": "nexmo", | ||
"version": "2.5.1-beta-1", | ||
"version": "2.5.1", | ||
"main": "lib/Nexmo", | ||
"types": "./typings/index.d.ts", | ||
"keywords": [ | ||
@@ -28,4 +29,3 @@ "sms", | ||
"ecwyne", | ||
"https://github.com/backhand", | ||
"alexlakatos" | ||
"https://github.com/backhand" | ||
], | ||
@@ -35,2 +35,3 @@ "scripts": { | ||
"test": "npm run test-no-lint", | ||
"report-coverage": "cross-env NODE_ENV=test nyc --reporter=text-lcov mocha > coverage.lcov", | ||
"test-coverage": "cross-env NODE_ENV=test nyc mocha", | ||
@@ -43,7 +44,6 @@ "test-coverage-html": "cross-env NODE_ENV=test nyc --reporter html mocha", | ||
"prepublish": "npm run compile", | ||
"pretest": "npm run lint", | ||
"test-e2e": "npm run compile && mocha --compilers ./node_modules/.bin/_mocha --compilers js:babel-register ./e2e/*.spec.js" | ||
"pretest": "npm run lint" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.7.7", | ||
"babel-cli": "^6.26.0", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
@@ -59,5 +59,5 @@ "babel-plugin-istanbul": "^4.1.6", | ||
"dotenv": "^2.0.0", | ||
"eslint": "^3.18", | ||
"eslint-config-prettier": "^2.10.0", | ||
"eslint-plugin-prettier": "^2.7.0", | ||
"eslint": "^4.18", | ||
"eslint-config-prettier": "^6.2", | ||
"eslint-plugin-prettier": "^2.7", | ||
"expect.js": "^0.3.1", | ||
@@ -68,3 +68,3 @@ "express": "^4.16.4", | ||
"nodemon": "^1.18.9", | ||
"nyc": "^14.0.0", | ||
"nyc": "^14.1.1", | ||
"prettier": "^1.16.3", | ||
@@ -71,0 +71,0 @@ "sinon": "^1.17.4", |
237
README.md
# Nexmo Client Library for Node.js | ||
[![build status](https://secure.travis-ci.org/Nexmo/nexmo-node.png)](http://travis-ci.org/Nexmo/nexmo-node) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/Nexmo/nexmo-node/badge.svg)](https://snyk.io/test/github/Nexmo/nexmo-node) | ||
[![codecov](https://codecov.io/gh/Nexmo/nexmo-node/branch/master/graph/badge.svg)](https://codecov.io/gh/Nexmo/nexmo-node) | ||
@@ -11,3 +12,3 @@ A Node.JS REST API Wrapper library for [Nexmo](https://www.nexmo.com/). | ||
[Installation](#installation) | [Constructor](#constructor) | [Messaging](#messaging) | [Voice](#voice) | [Verify](#verify) | [Number Insight](#number-insight) | [Applications](#applications) | [Conversations](#conversations) | [Users](#users) | [Management](#management) | [JWT (JSON Web Token)](#jwt) | ||
[Installation](#installation) | [Constructor](#constructor) | [Messaging](#messaging) | [Message Signing](#signature) | [Voice](#voice) | [Verify](#verify) | [Number Insight](#number-insight) | [Applications](#applications) | [Management](#management) | [Redact](#redact) | [JWT (JSON Web Token)](#jwt) | ||
@@ -22,5 +23,2 @@ ## Installation | ||
* `apiKey` and `apiSecret` are required for SMS, Verify, Number Insights, Account management APIs | ||
* `applicationId` and `privateKey` are required for Voice / Stitch applications | ||
```js | ||
@@ -34,2 +32,4 @@ const Nexmo = require('nexmo'); | ||
privateKey: PRIVATE_KEY_PATH, | ||
signatureSecret: SIGNATURE_SECRET, | ||
signatureMethod: SIGNATURE_METHOD | ||
}, options); | ||
@@ -40,7 +40,8 @@ ``` | ||
* `apiSecret` - API SECRET from Nexmo. | ||
* `applicationId` - (optional) The Nexmo Application ID to be used when creating JWTs. Required for voice-related functionality. | ||
* `applicationId` - (optional) The Nexmo Application ID to be used when creating JWTs. | ||
* `privateKey` - (optional) The Private Key to be used when creating JWTs. You can specify the key as any of the following: | ||
* The private key as a string (It must start with `-----BEGIN PRIVATE KEY-----`). | ||
* A [Buffer](https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_string_encoding) containing the file contents. Required for voice-related functionality. | ||
* A path to the key file on disk. | ||
* A [Buffer](https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_string_encoding) containing the file contents. | ||
* A String containing the path to the key file on disk. | ||
* `signatureSecret` - (optional) API singature secret from Nexmo, used for signing SMS message requests | ||
* `signatureMethod` - (optional) singature method matching the one you gave Nexmo, used for signing SMS message requests. Must be one of "md5hash", "md5", "sha1", "sha256", or "sha512" | ||
* `options` - (optional) Additional options for the constructor. | ||
@@ -389,3 +390,3 @@ | ||
```js | ||
nexmo.applications.update(params, callback); | ||
nexmo.applications.update(appId, params, callback); | ||
``` | ||
@@ -403,120 +404,2 @@ | ||
## Conversations | ||
For an overview of conversations see https://developer.nexmo.com/stitch/overview | ||
### Create a Conversation | ||
```js | ||
nexmo.conversations.create(params, callback); | ||
``` | ||
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch#createConversation) | ||
### Get a single Conversation | ||
```js | ||
nexmo.conversations.get(conversationId, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch#retrieveConversation | ||
### Get Conversations by filter | ||
```js | ||
nexmo.conversations.get(options, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch | ||
### Update a Conversation | ||
```js | ||
nexmo.conversations.update(conversationId, params, callback); | ||
``` | ||
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch#replaceConversation) | ||
### Delete a Conversation | ||
```js | ||
nexmo.conversations.delete(conversationId, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch#deleteConversation | ||
### Add a Member to a Conversation | ||
```js | ||
nexmo.conversations.members.add(conversationId, params, callback); | ||
``` | ||
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch) | ||
### Get a single Member | ||
```js | ||
nexmo.conversations.members.get(conversationId, memberId, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch#getUser | ||
### Get Members by filter | ||
```js | ||
nexmo.conversations.members.get(conversationId, params, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch | ||
## Users | ||
### Create a User | ||
```js | ||
nexmo.users.create(params, callback); | ||
``` | ||
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch#createUse) | ||
### Get a single User | ||
```js | ||
nexmo.users.get(userId, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch#getUser | ||
### Get Users by filter | ||
```js | ||
nexmo.users.get(options, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch#getUsers | ||
### Get all Conversations for a Users | ||
```js | ||
nexmo.users.getConversations(userId, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch#getuserConversations | ||
### Update a User | ||
```js | ||
nexmo.users.update(userId, params, callback); | ||
``` | ||
params is a dictionary of parameters per [documentation](https://ea.developer.nexmo.com/api/conversation#create-a-conversation) | ||
### Delete a User | ||
```js | ||
nexmo.users.delete(userId, callback); | ||
``` | ||
For more information see https://developer.nexmo.com/api/stitch#deleteUser | ||
## Management | ||
@@ -649,3 +532,3 @@ | ||
```js | ||
nexmo.updateSMSCallback(<NEW_CALLBACK_URL>,callback); | ||
nexmo.account.updateSMSCallback(<NEW_CALLBACK_URL>,callback); | ||
``` | ||
@@ -713,67 +596,38 @@ | ||
## Channel | ||
## JWT | ||
### Send a message | ||
There are two ways of generating a JWT. You can use the function that exists on the Nexmo definition: | ||
```js | ||
nexmo.channel.send( | ||
{ type: "<TYPE>", number: "<TO>"}, | ||
{ type: "<TYPE>", number: "<FROM>"}, | ||
{ content: { type: "text", text: "testing" } }, | ||
callback | ||
); | ||
const Nexmo = require('nexmo'); | ||
const jwt = Nexmo.generateJwt('path/to/private.key', {application_id: APP_ID}); | ||
``` | ||
## Dispatch | ||
Or via a `Nexmo` instance where your supplied `applicationId` and `privateKey` credentials will be used: | ||
### Create a dispatch | ||
```js | ||
const Nexmo = require('nexmo'); | ||
```js | ||
nexmo.dispatch.create( | ||
"failover", | ||
[ | ||
{ | ||
to: { type: "viber_service_msg", id: "<TO>"}, | ||
from: { type: "viber_service_msg", id: "<FROM>" }, | ||
message: { | ||
content: { | ||
type: "text", | ||
text: "<CONTENT>" | ||
}, | ||
viber_service_msg: { | ||
ttl: 30 | ||
} | ||
}, | ||
failover: { | ||
expiry_time: 600, | ||
condition_status: "delivered" | ||
} | ||
}, | ||
{ | ||
to: { type: "sms", number: "<TO>" }, | ||
from: { type: "sms", number: "<FROM>" }, | ||
message: { | ||
content: { | ||
type: "text", | ||
text: "<CONTENT>" | ||
} | ||
} | ||
} | ||
], | ||
callback | ||
); | ||
const nexmo = new Nexmo({ | ||
apiKey: API_KEY, | ||
apiSecret: API_SECRET, | ||
applicationId: APP_ID, | ||
privateKey: PRIVATE_KEY_PATH, | ||
}); | ||
const jwt = nexmo.generateJwt(); | ||
``` | ||
## Signature | ||
## JWT | ||
There are two ways of generating a signature hash. Both strip the `sig` parameter if supplied. You can use the function that exists on the Nexmo definition: | ||
There are two ways of generating a JWT. You can use the function that exists on the Nexmo definition: | ||
```js | ||
const Nexmo = require('nexmo'); | ||
const jwt = Nexmo.generateJwt('path/to/private.key', {application_id: APP_ID}); | ||
const hash = Nexmo.generateSignature(SIGNATURE_METHOD, SIGNATURE_SECRET, params); | ||
``` | ||
Or via a `Nexmo` instance where your supplied `applicationId` and `privateKey` credentials will be used: | ||
Or via a `Nexmo` instance where your supplied `signatureSecret` and `signatureMethod`: | ||
@@ -784,9 +638,15 @@ ```js | ||
const nexmo = new Nexmo({ | ||
applicationId: APP_ID, | ||
privateKey: PRIVATE_KEY_PATH, | ||
apiKey: API_KEY, | ||
apiSecret: API_SECRET, | ||
signatureSecret: SIGNATURE_SECRET, | ||
signatureMethod: SIGNATURE_METHOD, | ||
}); | ||
const jwt = nexmo.generateJwt(); | ||
const hash = nexmo.generateSignature(); | ||
``` | ||
`SIGNATURE_METHOD` is the signature method matching the one you gave Nexmo. Must be one of "md5hash", "md5", "sha1", "sha256", or "sha512". | ||
## Voice (Deprecated) | ||
@@ -927,15 +787,2 @@ | ||
* [x] Delete an Application | ||
* Conversations | ||
* [x] Create a Conversation | ||
* [x] Get Conversations | ||
* [x] Update a Conversation | ||
* [x] Delete a Conversation | ||
* [x] Add a Member to a Conversation | ||
* [x] Get Members | ||
* Users | ||
* [x] Create a User | ||
* [x] Get Users | ||
* [x] Get Conversations for a User | ||
* [x] Update a User | ||
* [x] Delete a User | ||
* Account | ||
@@ -958,6 +805,2 @@ * [X] Balance | ||
* [x] Delete | ||
* Channel | ||
* [x] Send | ||
* Workflow | ||
* [x] Create | ||
* Voice (Deprecated) | ||
@@ -964,0 +807,0 @@ * [x] Outbound Calls |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
8
404234
44
3453
807