@qite/tide-client 1.1.128 → 1.1.129

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
@@ -6517,6 +6517,7 @@ var getMolliePayment = function (config, request, signal) {
6517
6517
 
6518
6518
  var ENDPOINT$4 = "/api/web/search";
6519
6519
  var ENDPOINT_COUNTRIES = ENDPOINT$4 + "/countries";
6520
+ var ENDPOINT_LOCATIONS$1 = ENDPOINT$4 + "/locations";
6520
6521
  /**
6521
6522
  * api/search/countries
6522
6523
  * Gets all Countries
@@ -6529,6 +6530,15 @@ var getCountries = function (config, signal) {
6529
6530
  var apiKey = config.apiKey;
6530
6531
  return get(url, apiKey, config.token, signal, true);
6531
6532
  };
6533
+ var searchLocations = function (config, searchTerm, signal) {
6534
+ var apiKey = config.apiKey;
6535
+ var safeSearch = searchTerm.replace(/'/g, "''");
6536
+ var filter =
6537
+ "$filter=contains(tolower(Name),'" + safeSearch.toLowerCase() + "')";
6538
+ var top = "$top=10";
6539
+ var url = "" + config.host + ENDPOINT_LOCATIONS$1 + "?" + filter + "&" + top;
6540
+ return get(url, apiKey, config.token, signal, true);
6541
+ };
6532
6542
 
6533
6543
  var createParams = function (filter, all, gridColumns, mode, forceToLower) {
6534
6544
  var params = {};
@@ -6985,6 +6995,7 @@ exports.resetPassword = resetPassword;
6985
6995
  exports.search = search;
6986
6996
  exports.searchElastic = searchElastic;
6987
6997
  exports.searchFlightPool = searchFlightPool;
6998
+ exports.searchLocations = searchLocations;
6988
6999
  exports.searchWithErrorMapping = searchWithErrorMapping;
6989
7000
  exports.setCustomEntryStatus = setCustomEntryStatus;
6990
7001
  exports.setEntryStatus = setEntryStatus;