@qite/tide-client 1.1.133 → 1.1.135

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,7 +6517,12 @@ 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";
6523
+ var ENDPOINT_PORTAL = function (portalId) {
6524
+ return ENDPOINT$4 + "/portal/" + portalId;
6525
+ };
6521
6526
  /**
6522
6527
  * api/search/countries
6523
6528
  * Gets all Countries
@@ -6530,6 +6535,26 @@ var getCountries = function (config, signal) {
6530
6535
  var apiKey = config.apiKey;
6531
6536
  return get(url, apiKey, config.token, signal, true);
6532
6537
  };
6538
+ var searchRegions = 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_REGIONS + "?" + filter;
6546
+ return get(url, apiKey, config.token, signal, true);
6547
+ };
6548
+ var searchOords = function (config, searchTerm, signal) {
6549
+ var apiKey = config.apiKey;
6550
+ var safeSearch = searchTerm.replace(/'/g, "''");
6551
+ var filter =
6552
+ "$skip=0&$top=20&$orderby=name%20asc&$filter=contains(name,'" +
6553
+ safeSearch.toLowerCase() +
6554
+ "')";
6555
+ var url = "" + config.host + ENDPOINT_OORDS + "?" + filter;
6556
+ return get(url, apiKey, config.token, signal, true);
6557
+ };
6533
6558
  var searchLocations = function (config, searchTerm, signal) {
6534
6559
  var apiKey = config.apiKey;
6535
6560
  var safeSearch = searchTerm.replace(/'/g, "''");
@@ -6540,6 +6565,11 @@ var searchLocations = function (config, searchTerm, signal) {
6540
6565
  var url = "" + config.host + ENDPOINT_LOCATIONS$1 + "?" + filter;
6541
6566
  return get(url, apiKey, config.token, signal, true);
6542
6567
  };
6568
+ var getPortal = function (config, portalId, signal) {
6569
+ var url = "" + config.host + ENDPOINT_PORTAL(portalId);
6570
+ var apiKey = config.apiKey;
6571
+ return get(url, apiKey, config.token, signal, true);
6572
+ };
6543
6573
 
6544
6574
  var createParams = function (filter, all, gridColumns, mode, forceToLower) {
6545
6575
  var params = {};
@@ -6985,6 +7015,7 @@ exports.getEntryTotals = getEntryTotals;
6985
7015
  exports.getInvoiceList = getInvoiceList;
6986
7016
  exports.getLocations = getLocations;
6987
7017
  exports.getMolliePayment = getMolliePayment;
7018
+ exports.getPortal = getPortal;
6988
7019
  exports.getPrintActions = getPrintActions;
6989
7020
  exports.getTranslationDictionary = getTranslationDictionary;
6990
7021
  exports.login = login;
@@ -6997,6 +7028,8 @@ exports.search = search;
6997
7028
  exports.searchElastic = searchElastic;
6998
7029
  exports.searchFlightPool = searchFlightPool;
6999
7030
  exports.searchLocations = searchLocations;
7031
+ exports.searchOords = searchOords;
7032
+ exports.searchRegions = searchRegions;
7000
7033
  exports.searchWithErrorMapping = searchWithErrorMapping;
7001
7034
  exports.setCustomEntryStatus = setCustomEntryStatus;
7002
7035
  exports.setEntryStatus = setEntryStatus;