btrz-api-client
Advanced tools
Comparing version 1.36.0 to 1.37.0
@@ -37,5 +37,18 @@ "use strict"; | ||
function remove(_ref4) { | ||
var jwtToken = _ref4.jwtToken, | ||
token = _ref4.token, | ||
id = _ref4.id; | ||
return client({ | ||
url: "/application-settings/" + id, | ||
method: "delete", | ||
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }) | ||
}); | ||
} | ||
return { | ||
get: get, | ||
update: update | ||
update: update, | ||
remove: remove | ||
}; | ||
@@ -42,0 +55,0 @@ } |
{ | ||
"name": "btrz-api-client", | ||
"version": "1.36.0", | ||
"version": "1.37.0", | ||
"description": "Api client for Betterez endpoints", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,5 +20,14 @@ const {authorizationHeaders} = require("./../endpoints_helpers"); | ||
function remove({jwtToken, token, id}) { | ||
return client({ | ||
url: `/application-settings/${id}`, | ||
method: "delete", | ||
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}) | ||
}); | ||
} | ||
return { | ||
get, | ||
update | ||
update, | ||
remove | ||
}; | ||
@@ -25,0 +34,0 @@ } |
@@ -21,3 +21,3 @@ const {axiosMock, expectRequest} = require("./../../test-helpers"); | ||
it("should update existing promo", () => { | ||
it("should update an existing application setting", () => { | ||
const application = { | ||
@@ -32,2 +32,10 @@ name: "A" | ||
}); | ||
it("should remove an application setting", () => { | ||
const id = "someId"; | ||
axiosMock.onDelete(`/application-settings/${id}`) | ||
.reply(expectRequest({statusCode: 200, token, jwtToken})); | ||
return api.accounts.applicationSettings.remove({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
404797
11080