Comparing version 0.0.18 to 0.0.19
@@ -148,3 +148,19 @@ var q = require('q'); | ||
}; | ||
/** | ||
* Update file on provider | ||
* @method updateFile | ||
* @param {String} identifier | ||
* @param {Buffer} content_buffer | ||
* @param {Object} provider_options | ||
* @param {} filefog_options | ||
* @return CallExpression | ||
*/ | ||
ClientWrapper.prototype.updateFile = function (identifier, content_buffer, provider_options,filefog_options) { | ||
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {}); | ||
return this._methodWrapper("updateFile",arguments,filefog_options); | ||
}; | ||
/** | ||
* Delete file on provider | ||
@@ -191,2 +207,18 @@ * @method deleteFile | ||
/** | ||
* Update file information provider, eg parent folder name, filename | ||
* @method updateFileInformation | ||
* @param {String} identifier | ||
* @param {String} fileName | ||
* @param {String} parentIdentifier | ||
* @param {Object} provider_options | ||
* @param {} filefog_options | ||
* @return CallExpression | ||
*/ | ||
ClientWrapper.prototype.updateFileInformation = function (identifier, fileName, parentIdentifier, provider_options,filefog_options) { | ||
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {}); | ||
return this._methodWrapper("updateFileInformation",arguments,filefog_options); | ||
}; | ||
/** | ||
* Create folder on provider | ||
@@ -255,5 +287,16 @@ * @method createFolder | ||
if(provider_config.interfaces.indexOf("webhooks") != -1) { | ||
ClientWrapper.prototype.subscribe = function (webhook_options,filefog_options) { | ||
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {}); | ||
return this._methodWrapper("subscribe",arguments,filefog_options); | ||
} | ||
ClientWrapper.prototype.unsubscribe = function (webhook_options,filefog_options) { | ||
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {}); | ||
return this._methodWrapper("unsubscribe",arguments,filefog_options); | ||
} | ||
} | ||
return new ClientWrapper(name,transform,provider_config, credentials, filefog_options) | ||
} |
@@ -115,4 +115,12 @@ var util = require("util"); | ||
if(config.interfaces.indexOf("webhooks") != -1) { | ||
ProviderWrapper.prototype.events_webhook = function (req,res,webhook_options,filefog_options) { | ||
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {}); | ||
return this._methodWrapper("events_webhook",arguments,filefog_options); | ||
} | ||
} | ||
return new ProviderWrapper(name, classes.transform, config,filefog_options) | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"description": "Cloud Storage API Wrapper supporting Box, Dropbox, Skydrive, Google Drive", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"repository": { | ||
@@ -12,5 +12,5 @@ "url": "https://github.com/filefog/filefog.git" | ||
"dependencies": { | ||
"node.extend": "~1.0.9", | ||
"q": "~1.0.0", | ||
"winston": "~0.7.2", | ||
"node.extend": "~1.0.9" | ||
"winston": "~0.7.2" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
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
41156
939