@qite/tide-client 1.0.69 → 1.0.72
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 +27 -0
- package/build/index.js.map +1 -1
- package/build/types/offer/booking-v2/request/booking-package-details-request.d.ts +4 -0
- package/build/types/offer/booking-v2/request/index.d.ts +1 -0
- package/build/types/offer/booking-v2/request/selected-flight.d.ts +4 -0
- package/build/types/offer/booking-v2/response/booking-package-flight-pool.d.ts +5 -0
- package/build/types/offer/booking-v2/response/booking-package-hotel-pool.d.ts +4 -0
- package/build/types/offer/booking-v2/response/index.d.ts +2 -0
- package/build/types/offer/booking-v2/shared/booking-package-flight-meta-data.d.ts +1 -0
- package/build/utils/booking-v2-client.d.ts +12 -0
- package/package.json +1 -1
- package/src/types/offer/booking-v2/request/booking-package-details-request.ts +6 -0
- package/src/types/offer/booking-v2/request/index.ts +1 -0
- package/src/types/offer/booking-v2/request/selected-flight.ts +4 -0
- package/src/types/offer/booking-v2/response/booking-package-flight-pool.ts +6 -0
- package/src/types/offer/booking-v2/response/booking-package-hotel-pool.ts +5 -0
- package/src/types/offer/booking-v2/response/index.ts +2 -0
- package/src/types/offer/booking-v2/shared/booking-package-flight-meta-data.ts +1 -0
- package/src/utils/booking-v2-client.ts +27 -0
package/build/index.js
CHANGED
|
@@ -6207,6 +6207,8 @@ var ENDPOINT$4 = "/api/web/booking/v2";
|
|
|
6207
6207
|
var ENDPOINT_PACKAGE_SEARCH_LIST = ENDPOINT$4 + "/package-search-list";
|
|
6208
6208
|
var ENDPOINT_SEARCH = ENDPOINT$4 + "/search";
|
|
6209
6209
|
var ENDPOINT_DETAILS = ENDPOINT$4 + "/details";
|
|
6210
|
+
var ENDPOINT_ALTERNATE_HOTELS = "/alternate-hotels";
|
|
6211
|
+
var ENDPOINT_ALTERNATE_FLIGHTS = "/alternate-flights";
|
|
6210
6212
|
var ENDPOINT_PRICE_DETAILS = ENDPOINT$4 + "/price-details";
|
|
6211
6213
|
var ENDPOINT_BOOK = ENDPOINT$4 + "/book";
|
|
6212
6214
|
var ENDPOINT_AGENTS = ENDPOINT$4 + "/agents";
|
|
@@ -6216,6 +6218,7 @@ var readPackageSearchList = function (config, request, signal) {
|
|
|
6216
6218
|
var body = JSON.stringify(request);
|
|
6217
6219
|
return post(url, apiKey, body, signal);
|
|
6218
6220
|
};
|
|
6221
|
+
// PACKAGE SEARCH
|
|
6219
6222
|
var search = function (config, request, signal) {
|
|
6220
6223
|
var url = "" + config.host + ENDPOINT_SEARCH;
|
|
6221
6224
|
var apiKey = config.apiKey;
|
|
@@ -6228,6 +6231,28 @@ var details = function (config, request, signal) {
|
|
|
6228
6231
|
var body = JSON.stringify(request);
|
|
6229
6232
|
return post(url, apiKey, body, signal, true);
|
|
6230
6233
|
};
|
|
6234
|
+
var alternateHotels = function (config, transactionId, signal) {
|
|
6235
|
+
var url =
|
|
6236
|
+
"" +
|
|
6237
|
+
config.host +
|
|
6238
|
+
ENDPOINT_DETAILS +
|
|
6239
|
+
"/" +
|
|
6240
|
+
transactionId +
|
|
6241
|
+
ENDPOINT_ALTERNATE_HOTELS;
|
|
6242
|
+
var apiKey = config.apiKey;
|
|
6243
|
+
return get(url, apiKey, signal, true);
|
|
6244
|
+
};
|
|
6245
|
+
var alternateFlights = function (config, transactionId, signal) {
|
|
6246
|
+
var url =
|
|
6247
|
+
"" +
|
|
6248
|
+
config.host +
|
|
6249
|
+
ENDPOINT_DETAILS +
|
|
6250
|
+
"/" +
|
|
6251
|
+
transactionId +
|
|
6252
|
+
ENDPOINT_ALTERNATE_FLIGHTS;
|
|
6253
|
+
var apiKey = config.apiKey;
|
|
6254
|
+
return get(url, apiKey, signal, true);
|
|
6255
|
+
};
|
|
6231
6256
|
var priceDetails = function (config, request, signal) {
|
|
6232
6257
|
var url = "" + config.host + ENDPOINT_PRICE_DETAILS;
|
|
6233
6258
|
var apiKey = config.apiKey;
|
|
@@ -6337,6 +6362,8 @@ exports.MetaDataType = MetaDataType;
|
|
|
6337
6362
|
exports.RequirementType = RequirementType;
|
|
6338
6363
|
exports.ServiceType = ServiceType;
|
|
6339
6364
|
exports.agents = agents;
|
|
6365
|
+
exports.alternateFlights = alternateFlights;
|
|
6366
|
+
exports.alternateHotels = alternateHotels;
|
|
6340
6367
|
exports.book = book;
|
|
6341
6368
|
exports.contactForm = contactForm;
|
|
6342
6369
|
exports.contactHasTag = contactHasTag;
|