node-zendesk
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -51,3 +51,4 @@ // client.js - node-zendesk client initialization | ||
'Policies', | ||
'Automations' | ||
'Automations', | ||
'PermissionGroups' | ||
], | ||
@@ -54,0 +55,0 @@ helpcenterParts = [ |
@@ -20,7 +20,7 @@ //automations.js: Client for the zendesk API. | ||
Automations.prototype.list = function (cb) { | ||
this.requestAll('GET', ['automations'], cb);//all | ||
return this.requestAll('GET', ['automations'], cb);//all | ||
}; | ||
Automations.prototype.listActive = function (automationID, cb) { | ||
this.requestAll('GET', ['automations', 'active'], cb);//all? | ||
return this.requestAll('GET', ['automations', 'active'], cb);//all? | ||
}; | ||
@@ -30,3 +30,3 @@ | ||
Automations.prototype.show = function (automationID, cb) { | ||
this.request('GET', ['automations', automationID], cb); | ||
return this.request('GET', ['automations', automationID], cb); | ||
}; | ||
@@ -36,3 +36,3 @@ | ||
Automations.prototype.create = function (automation, cb) { | ||
this.request('POST', ['automations'], automation, cb); | ||
return this.request('POST', ['automations'], automation, cb); | ||
}; | ||
@@ -42,3 +42,3 @@ | ||
Automations.prototype.update = function (automationID, automation, cb) { | ||
this.request('PUT', ['automations', automationID], automation, cb); | ||
return this.request('PUT', ['automations', automationID], automation, cb); | ||
}; | ||
@@ -48,3 +48,3 @@ | ||
Automations.prototype.delete = function (automationID, cb) { | ||
this.request('DELETE', ['automations', automationID], cb); | ||
return this.request('DELETE', ['automations', automationID], cb); | ||
}; | ||
@@ -54,4 +54,4 @@ | ||
Automations.prototype.reorder = function (automationIDs, cb) { | ||
this.requestAll('PUT', ['automations', 'reorder'], {automation_ids: automationIDs}, cb); | ||
return this.requestAll('PUT', ['automations', 'reorder'], {automation_ids: automationIDs}, cb); | ||
}; | ||
@@ -10,3 +10,2 @@ // client.js - main client file that does most of the processing | ||
EventEmitter = require('events').EventEmitter, | ||
Client = require('./client').Client, | ||
qs = require('querystring'), | ||
@@ -42,3 +41,3 @@ async = require('async'), | ||
Client = exports.Client = function (options) { | ||
var Client = exports.Client = function (options) { | ||
this.options = options; | ||
@@ -45,0 +44,0 @@ this.sideLoad = []; |
@@ -16,2 +16,7 @@ //triggers.js: Client for the zendesk API. | ||
// ######################################################## Triggers | ||
// ====================================== Searching Triggers | ||
Triggers.prototype.search = function(searchTerm, cb) { | ||
return this.request('GET', ['triggers', 'search', {query: searchTerm}], cb); | ||
}; | ||
// ====================================== Listing Triggers | ||
@@ -18,0 +23,0 @@ Triggers.prototype.list = function (cb) { |
@@ -29,2 +29,6 @@ //users.js: Client for the zendesk API. | ||
Users.prototype.listWithFilter = function (type, value, cb) { | ||
return this.requestAll('GET', ['users', { [type]: value }], cb); | ||
}; | ||
Users.prototype.listByGroup = function (id, cb) { | ||
@@ -31,0 +35,0 @@ return this.requestAll('GET', ['groups', id, 'users'], cb); |
{ | ||
"name": "node-zendesk", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "zendesk API client wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
175633
90
3216