Skip to content

Commit

Permalink
* Changed farm remove bucket items route from DELETE to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
kfitzgerald committed Jul 21, 2019
1 parent 3e86fc2 commit 68a380c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 33 deletions.
30 changes: 15 additions & 15 deletions dist/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function Client(config) {
/**
* SDK Version
*/
Client.Version = '2.4.0';
Client.Version = '2.4.2';

/**
* Expose the Provider base class
Expand Down Expand Up @@ -1679,8 +1679,8 @@ Client.resourceBinders.push(function(Client) {
return Client._makeRequest({
api: 'farm',
action: 'bucket_item.delete',
method: 'DELETE',
path: '/api/{instance_id}/bucket-items',
method: 'POST',
path: '/api/{instance_id}/bucket-items/delete',
pathParams: {
instance_id: instance_id
},
Expand Down Expand Up @@ -1859,23 +1859,25 @@ Client.resourceBinders.push(function(Client) {
},

/**
* Deletes a direct link.
* Update an existing direct link.
* @param {string} instance_id – Instance Id
* @param {string} vendor_offer_id – Unique offer id, using combined vendor_id:offer_id pair
* @param {object} payload - Resource or parameters
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
* @return {Query} - Compiled query ready for execution
* @memberof Client.direct_links#
*/
delete: function(instance_id, vendor_offer_id, callback) {
update: function(instance_id, vendor_offer_id, payload, callback) {
return Client._makeRequest({
api: 'farm',
action: 'direct_link.delete',
method: 'DELETE',
action: 'direct_link.update',
method: 'PUT',
path: '/api/{instance_id}/links/{vendor_offer_id}',
pathParams: {
instance_id: instance_id,
vendor_offer_id: vendor_offer_id
}
},
payload: payload
}, callback);
},

Expand All @@ -1901,25 +1903,23 @@ Client.resourceBinders.push(function(Client) {
},

/**
* Update an existing direct link.
* Deletes a direct link.
* @param {string} instance_id – Instance Id
* @param {string} vendor_offer_id – Unique offer id, using combined vendor_id:offer_id pair
* @param {object} payload - Resource or parameters
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
* @return {Query} - Compiled query ready for execution
* @memberof Client.direct_links#
*/
update: function(instance_id, vendor_offer_id, payload, callback) {
delete: function(instance_id, vendor_offer_id, callback) {
return Client._makeRequest({
api: 'farm',
action: 'direct_link.update',
method: 'PUT',
action: 'direct_link.delete',
method: 'DELETE',
path: '/api/{instance_id}/links/{vendor_offer_id}',
pathParams: {
instance_id: instance_id,
vendor_offer_id: vendor_offer_id
},
payload: payload
}
}, callback);
}

Expand Down
30 changes: 15 additions & 15 deletions dist/okanjo-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ function Client(config) {
/**
* SDK Version
*/
Client.Version = '2.4.0';
Client.Version = '2.4.2';

/**
* Expose the Provider base class
Expand Down Expand Up @@ -3339,8 +3339,8 @@ Client.resourceBinders.push(function(Client) {
return Client._makeRequest({
api: 'farm',
action: 'bucket_item.delete',
method: 'DELETE',
path: '/api/{instance_id}/bucket-items',
method: 'POST',
path: '/api/{instance_id}/bucket-items/delete',
pathParams: {
instance_id: instance_id
},
Expand Down Expand Up @@ -3519,23 +3519,25 @@ Client.resourceBinders.push(function(Client) {
},

/**
* Deletes a direct link.
* Update an existing direct link.
* @param {string} instance_id – Instance Id
* @param {string} vendor_offer_id – Unique offer id, using combined vendor_id:offer_id pair
* @param {object} payload - Resource or parameters
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
* @return {Query} - Compiled query ready for execution
* @memberof Client.direct_links#
*/
delete: function(instance_id, vendor_offer_id, callback) {
update: function(instance_id, vendor_offer_id, payload, callback) {
return Client._makeRequest({
api: 'farm',
action: 'direct_link.delete',
method: 'DELETE',
action: 'direct_link.update',
method: 'PUT',
path: '/api/{instance_id}/links/{vendor_offer_id}',
pathParams: {
instance_id: instance_id,
vendor_offer_id: vendor_offer_id
}
},
payload: payload
}, callback);
},

Expand All @@ -3561,25 +3563,23 @@ Client.resourceBinders.push(function(Client) {
},

/**
* Update an existing direct link.
* Deletes a direct link.
* @param {string} instance_id – Instance Id
* @param {string} vendor_offer_id – Unique offer id, using combined vendor_id:offer_id pair
* @param {object} payload - Resource or parameters
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
* @return {Query} - Compiled query ready for execution
* @memberof Client.direct_links#
*/
update: function(instance_id, vendor_offer_id, payload, callback) {
delete: function(instance_id, vendor_offer_id, callback) {
return Client._makeRequest({
api: 'farm',
action: 'direct_link.update',
method: 'PUT',
action: 'direct_link.delete',
method: 'DELETE',
path: '/api/{instance_id}/links/{vendor_offer_id}',
pathParams: {
instance_id: instance_id,
vendor_offer_id: vendor_offer_id
},
payload: payload
}
}, callback);
}

Expand Down
2 changes: 1 addition & 1 deletion dist/okanjo-sdk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/okanjo-sdk.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "okanjo",
"version": "2.4.1",
"version": "2.4.2",
"description": "Integrate your application with the Okanjo API.",
"main": "dist/client.js",
"scripts": {
Expand Down

0 comments on commit 68a380c

Please sign in to comment.