node-zendesk
Advanced tools
Comparing version 1.1.13 to 1.2.0
@@ -5,3 +5,3 @@ // client.js - node-zendesk client initialization | ||
var parts = [ | ||
'Users', 'Tickets', 'TicketAudits', 'TicketFields', 'TicketMetrics', 'TicketImport', 'TicketExport', | ||
'Users', 'Tickets', 'TicketAudits', 'TicketFields', 'TicketForms', 'TicketMetrics', 'TicketImport', 'TicketExport', | ||
'Views', 'Requests', 'UserIdentities', 'Groups', 'GroupMemberships', | ||
@@ -8,0 +8,0 @@ 'CustomAgentRoles', 'Organizations', 'Search', 'Tags', 'Forums', |
@@ -18,2 +18,3 @@ //Organizations.js: Client for the zendesk API. | ||
// ######################################################## Organizations | ||
// ====================================== Listing Organizations | ||
@@ -24,5 +25,3 @@ Organizations.prototype.list = function (cb) { | ||
// ====================================== Viewing Organizations | ||
Organizations.prototype.show = function (organizationID, cb) { | ||
@@ -43,3 +42,2 @@ this.request('GET', ['organizations', organizationID], cb); | ||
// ====================================== Updating Organizations | ||
Organizations.prototype.update = function (organizationID, organization, cb) { | ||
@@ -49,2 +47,6 @@ this.request('PUT', ['organizations', organizationID], organization, cb); | ||
// ====================================== Creating Or Updating Organizations | ||
Organizations.prototype.upsert = function (organization, cb) { | ||
this.request('POST', ['organizations', 'create_or_update'], organization, cb); | ||
}; | ||
@@ -66,3 +68,3 @@ // ====================================== Deleting Organizations | ||
// ====================================== New Incremental Organization Export with include | ||
// ====================================== New Incremental Organization Export with include | ||
Organizations.prototype.incrementalInclude = function (startTime, include, cb) { | ||
@@ -72,7 +74,8 @@ this.request('GET', ['incremental', 'organizations', {start_time: startTime, include: include}], cb); | ||
// ====================================== New Incremental Organization Export | ||
// ====================================== New Incremental Organization Export | ||
Organizations.prototype.incremental = function (startTime, cb) { | ||
this.request('GET', ['incremental', 'organizations', {start_time: startTime}], cb); | ||
}; | ||
// ====================================== New Incremental Organization Export Sample | ||
// ====================================== New Incremental Organization Export Sample | ||
Organizations.prototype.incrementalSample = function (startTime, cb) { | ||
@@ -79,0 +82,0 @@ this.request('GET', ['incremental', 'organizations', 'sample', {start_time: startTime}], cb); |
{ | ||
"name": "node-zendesk", | ||
"version": "1.1.13", | ||
"version": "1.2.0", | ||
"description": "zendesk API client wrapper", | ||
@@ -58,3 +58,4 @@ "keywords": [ | ||
"Mathias Anderssén <Okar@noreply.users.github.com>", | ||
"Adil H <didil@noreply.users.github.com>" | ||
"Adil H <didil@noreply.users.github.com>", | ||
"Heriberto Madrigal <magic-madrigal@noreply.users.github.com>" | ||
], | ||
@@ -61,0 +62,0 @@ "dependencies": { |
@@ -285,2 +285,3 @@ # node-zendesk | ||
update(organizationID, organization, cb) | ||
upsert(organizationID, organization, cb) | ||
delete(organizationID, cb) | ||
@@ -388,2 +389,10 @@ incrementalInclude(startTime, includes, cb) // New Export API supporing includes | ||
### ticketforms | ||
```js | ||
list(cb) | ||
show(ticketFormID, cb) | ||
``` | ||
### ticketfields | ||
@@ -390,0 +399,0 @@ |
142954
71
2795
783