@qite/tide-client 1.1.141 → 1.1.142

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.
package/build/index.js CHANGED
@@ -6535,6 +6535,16 @@ var getCountries = function (config, signal) {
6535
6535
  var apiKey = config.apiKey;
6536
6536
  return get(url, apiKey, config.token, signal, true);
6537
6537
  };
6538
+ var searchCountries = function (config, searchTerm, signal) {
6539
+ var apiKey = config.apiKey;
6540
+ var safeSearch = searchTerm.replace(/'/g, "''");
6541
+ var filter =
6542
+ "$skip=0&$top=20&$orderby=name%20asc&$filter=contains(name,'" +
6543
+ safeSearch.toLowerCase() +
6544
+ "')";
6545
+ var url = "" + config.host + ENDPOINT_COUNTRIES + "?" + filter;
6546
+ return get(url, apiKey, config.token, signal, true);
6547
+ };
6538
6548
  var searchRegions = function (config, searchTerm, signal) {
6539
6549
  var apiKey = config.apiKey;
6540
6550
  var safeSearch = searchTerm.replace(/'/g, "''");
@@ -7025,6 +7035,7 @@ exports.prices = prices;
7025
7035
  exports.print = print;
7026
7036
  exports.resetPassword = resetPassword;
7027
7037
  exports.search = search;
7038
+ exports.searchCountries = searchCountries;
7028
7039
  exports.searchElastic = searchElastic;
7029
7040
  exports.searchFlightPool = searchFlightPool;
7030
7041
  exports.searchLocations = searchLocations;