@qite/tide-client 1.1.65 → 1.1.67

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
@@ -6077,6 +6077,9 @@ var post = function (
6077
6077
  return [4 /*yield*/, response.text()];
6078
6078
  case 2:
6079
6079
  responseBody = _a.sent();
6080
+ if (!responseBody) {
6081
+ return [2 /*return*/, null];
6082
+ }
6080
6083
  result = skipReviver
6081
6084
  ? JSON.parse(responseBody)
6082
6085
  : JSON.parse(responseBody, reviver);
@@ -6108,6 +6111,9 @@ var patch = function (
6108
6111
  return [4 /*yield*/, response.text()];
6109
6112
  case 2:
6110
6113
  responseBody = _a.sent();
6114
+ if (!responseBody) {
6115
+ return [2 /*return*/, {}];
6116
+ }
6111
6117
  result = skipReviver
6112
6118
  ? JSON.parse(responseBody)
6113
6119
  : JSON.parse(responseBody, reviver);
@@ -6365,6 +6371,7 @@ var getMolliePayment = function (config, request, signal) {
6365
6371
 
6366
6372
  var ENDPOINT$4 = "/api/web/search";
6367
6373
  var ENDPOINT_COUNTRIES = ENDPOINT$4 + "/countries";
6374
+ var ENDPOINT_AIRPORTS = ENDPOINT$4 + "/airports";
6368
6375
  /**
6369
6376
  * api/search/countries
6370
6377
  * Gets all Countries
@@ -6377,6 +6384,11 @@ var getCountries = function (config, signal) {
6377
6384
  var apiKey = config.apiKey;
6378
6385
  return get(url, apiKey, config.token, signal, true);
6379
6386
  };
6387
+ var getAirports = function (config, signal) {
6388
+ var url = "" + config.host + ENDPOINT_AIRPORTS;
6389
+ var apiKey = config.apiKey;
6390
+ return get(url, apiKey, config.token, signal, true);
6391
+ };
6380
6392
 
6381
6393
  var createParams = function (filter, all, gridColumns, mode, forceToLower) {
6382
6394
  var params = {};
@@ -6757,6 +6769,7 @@ exports.feedXmlFolder = feedXmlFolder;
6757
6769
  exports.forgotPassword = forgotPassword;
6758
6770
  exports.generateBookingAccommodations = generateBookingAccommodations;
6759
6771
  exports.getAffiliates = getAffiliates;
6772
+ exports.getAirports = getAirports;
6760
6773
  exports.getAllotmentAvailability = getAllotmentAvailability;
6761
6774
  exports.getCountries = getCountries;
6762
6775
  exports.getCustomEntryStatus = getCustomEntryStatus;