@qite/tide-client 1.1.141 → 1.1.143
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 +18 -0
- package/build/index.js.map +1 -1
- package/build/types/web/airport.d.ts +4 -15
- package/build/types/web/index.d.ts +1 -0
- package/build/utils/search-client.d.ts +16 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -6523,6 +6523,7 @@ var ENDPOINT_LOCATIONS$1 = ENDPOINT$4 + "/locations";
|
|
|
6523
6523
|
var ENDPOINT_PORTAL = function (portalId) {
|
|
6524
6524
|
return ENDPOINT$4 + "/portal/" + portalId;
|
|
6525
6525
|
};
|
|
6526
|
+
var ENDPOINT_AIRPORT = "/api/web/entity/airport";
|
|
6526
6527
|
/**
|
|
6527
6528
|
* api/search/countries
|
|
6528
6529
|
* Gets all Countries
|
|
@@ -6535,6 +6536,16 @@ var getCountries = function (config, signal) {
|
|
|
6535
6536
|
var apiKey = config.apiKey;
|
|
6536
6537
|
return get(url, apiKey, config.token, signal, true);
|
|
6537
6538
|
};
|
|
6539
|
+
var searchCountries = function (config, searchTerm, signal) {
|
|
6540
|
+
var apiKey = config.apiKey;
|
|
6541
|
+
var safeSearch = searchTerm.replace(/'/g, "''");
|
|
6542
|
+
var filter =
|
|
6543
|
+
"$skip=0&$top=20&$orderby=name%20asc&$filter=contains(name,'" +
|
|
6544
|
+
safeSearch.toLowerCase() +
|
|
6545
|
+
"')";
|
|
6546
|
+
var url = "" + config.host + ENDPOINT_COUNTRIES + "?" + filter;
|
|
6547
|
+
return get(url, apiKey, config.token, signal, true);
|
|
6548
|
+
};
|
|
6538
6549
|
var searchRegions = function (config, searchTerm, signal) {
|
|
6539
6550
|
var apiKey = config.apiKey;
|
|
6540
6551
|
var safeSearch = searchTerm.replace(/'/g, "''");
|
|
@@ -6570,6 +6581,11 @@ var getPortal = function (config, portalId, signal) {
|
|
|
6570
6581
|
var apiKey = config.apiKey;
|
|
6571
6582
|
return get(url, apiKey, config.token, signal, true);
|
|
6572
6583
|
};
|
|
6584
|
+
var getAirports = function (config, signal) {
|
|
6585
|
+
var url = "" + config.host + ENDPOINT_AIRPORT;
|
|
6586
|
+
var apiKey = config.apiKey;
|
|
6587
|
+
return get(url, apiKey, config.token, signal, true);
|
|
6588
|
+
};
|
|
6573
6589
|
|
|
6574
6590
|
var createParams = function (filter, all, gridColumns, mode, forceToLower) {
|
|
6575
6591
|
var params = {};
|
|
@@ -7001,6 +7017,7 @@ exports.flightLines = flightLines;
|
|
|
7001
7017
|
exports.forgotPassword = forgotPassword;
|
|
7002
7018
|
exports.generateBookingAccommodations = generateBookingAccommodations;
|
|
7003
7019
|
exports.getAffiliates = getAffiliates;
|
|
7020
|
+
exports.getAirports = getAirports;
|
|
7004
7021
|
exports.getAllotment = getAllotment;
|
|
7005
7022
|
exports.getAllotmentAvailability = getAllotmentAvailability;
|
|
7006
7023
|
exports.getAllotmentList = getAllotmentList;
|
|
@@ -7025,6 +7042,7 @@ exports.prices = prices;
|
|
|
7025
7042
|
exports.print = print;
|
|
7026
7043
|
exports.resetPassword = resetPassword;
|
|
7027
7044
|
exports.search = search;
|
|
7045
|
+
exports.searchCountries = searchCountries;
|
|
7028
7046
|
exports.searchElastic = searchElastic;
|
|
7029
7047
|
exports.searchFlightPool = searchFlightPool;
|
|
7030
7048
|
exports.searchLocations = searchLocations;
|