@veloceapps/api 6.0.0-12 → 6.0.0-14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -914,6 +914,9 @@
914
914
  }
915
915
  return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/query", params: params }, options));
916
916
  };
917
+ SalesforceApiService.prototype.search = function (req, options) {
918
+ return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/rest/search", params: { q: req.searchString } }, options));
919
+ };
917
920
  SalesforceApiService.prototype.describe = function (objectName, fieldName, options) {
918
921
  var methodUrl = this.SERVICE_URL + "/describe/" + objectName + "/fields" + (fieldName ? "/" + fieldName : '');
919
922
  return this.httpService.api(Object.assign({ url: methodUrl }, options));