btrz-api-client
Advanced tools
Comparing version 1.37.0 to 1.38.0
@@ -49,6 +49,19 @@ "use strict"; | ||
function regenerateKeys(_ref5) { | ||
var jwtToken = _ref5.jwtToken, | ||
token = _ref5.token, | ||
id = _ref5.id; | ||
return client({ | ||
url: "/application-settings/" + id, | ||
method: "post", | ||
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }) | ||
}); | ||
} | ||
return { | ||
get: get, | ||
update: update, | ||
remove: remove | ||
remove: remove, | ||
regenerateKeys: regenerateKeys | ||
}; | ||
@@ -55,0 +68,0 @@ } |
{ | ||
"name": "btrz-api-client", | ||
"version": "1.37.0", | ||
"version": "1.38.0", | ||
"description": "Api client for Betterez endpoints", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,6 +28,15 @@ const {authorizationHeaders} = require("./../endpoints_helpers"); | ||
function regenerateKeys({jwtToken, token, id}) { | ||
return client({ | ||
url: `/application-settings/${id}`, | ||
method: "post", | ||
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}) | ||
}); | ||
} | ||
return { | ||
get, | ||
update, | ||
remove | ||
remove, | ||
regenerateKeys | ||
}; | ||
@@ -34,0 +43,0 @@ } |
@@ -39,2 +39,10 @@ const {axiosMock, expectRequest} = require("./../../test-helpers"); | ||
}); | ||
it("should regenerate the application keys", () => { | ||
const id = "someId"; | ||
axiosMock.onPost(`/application-settings/${id}`) | ||
.reply(expectRequest({statusCode: 200, token, jwtToken})); | ||
return api.accounts.applicationSettings.regenerateKeys({token, jwtToken, id}); | ||
}); | ||
}); |
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
405719
11105