@qite/tide-client 1.1.133 → 1.1.134

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,8 @@ 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_REGIONS = ENDPOINT$4 + "/regions";
6521
+ var ENDPOINT_OORDS = ENDPOINT$4 + "/oords";
6520
6522
  var ENDPOINT_LOCATIONS$1 = ENDPOINT$4 + "/locations";
6521
6523
  /**
6522
6524
  * api/search/countries
@@ -6530,6 +6532,26 @@ var getCountries = function (config, signal) {
6530
6532
  var apiKey = config.apiKey;
6531
6533
  return get(url, apiKey, config.token, signal, true);
6532
6534
  };
6535
+ var searchRegions = function (config, searchTerm, signal) {
6536
+ var apiKey = config.apiKey;
6537
+ var safeSearch = searchTerm.replace(/'/g, "''");
6538
+ var filter =
6539
+ "$skip=0&$top=20&$orderby=name%20asc&$filter=contains(name,'" +
6540
+ safeSearch.toLowerCase() +
6541
+ "')";
6542
+ var url = "" + config.host + ENDPOINT_REGIONS + "?" + filter;
6543
+ return get(url, apiKey, config.token, signal, true);
6544
+ };
6545
+ var searchOords = function (config, searchTerm, signal) {
6546
+ var apiKey = config.apiKey;
6547
+ var safeSearch = searchTerm.replace(/'/g, "''");
6548
+ var filter =
6549
+ "$skip=0&$top=20&$orderby=name%20asc&$filter=contains(name,'" +
6550
+ safeSearch.toLowerCase() +
6551
+ "')";
6552
+ var url = "" + config.host + ENDPOINT_OORDS + "?" + filter;
6553
+ return get(url, apiKey, config.token, signal, true);
6554
+ };
6533
6555
  var searchLocations = function (config, searchTerm, signal) {
6534
6556
  var apiKey = config.apiKey;
6535
6557
  var safeSearch = searchTerm.replace(/'/g, "''");
@@ -6997,6 +7019,8 @@ exports.search = search;
6997
7019
  exports.searchElastic = searchElastic;
6998
7020
  exports.searchFlightPool = searchFlightPool;
6999
7021
  exports.searchLocations = searchLocations;
7022
+ exports.searchOords = searchOords;
7023
+ exports.searchRegions = searchRegions;
7000
7024
  exports.searchWithErrorMapping = searchWithErrorMapping;
7001
7025
  exports.setCustomEntryStatus = setCustomEntryStatus;
7002
7026
  exports.setEntryStatus = setEntryStatus;