@radio-retail/api-client
Advanced tools
Comparing version 5.2.0 to 6.0.0
@@ -34,4 +34,8 @@ const methods = require('../utils/methods'); | ||
patchComment(jobId, noteId, body = {}, config = {}) { | ||
return instance.patch(`${baseRoute}/${jobId}/notes/${noteId}`, body).then(getData(config.raw)); | ||
patchComment(jobId, commentId, body = {}, config = {}) { | ||
return instance.patch(`${baseRoute}/${jobId}/comments/${commentId}`, body).then(getData(config.raw)); | ||
}, | ||
postComment(jobId, body = {}, config = {}) { | ||
return instance.post(`${baseRoute}/${jobId}/comments`, body).then(getData(config.raw)); | ||
} | ||
@@ -38,0 +42,0 @@ |
@@ -22,4 +22,4 @@ const methods = require('../utils/methods'); | ||
patchComment(ticketId, noteId, body = {}, config = {}) { | ||
return instance.patch(`${baseRoute}/${ticketId}/notes/${noteId}`, body).then(getData(config.raw)); | ||
patchComment(ticketId, commentId, body = {}, config = {}) { | ||
return instance.patch(`${baseRoute}/${ticketId}/comments/${commentId}`, body).then(getData(config.raw)); | ||
}, | ||
@@ -29,2 +29,6 @@ | ||
return instance.get(`${baseRoute}/${id}/comments`).then(getData(config.raw)); | ||
}, | ||
postComment(ticketId, body = {}, config = {}) { | ||
return instance.post(`${baseRoute}/${ticketId}/comments`, body).then(getData(config.raw)); | ||
} | ||
@@ -31,0 +35,0 @@ |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "5.2.0", | ||
"version": "6.0.0", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
19400
445