@qite/tide-client 2.0.9 → 2.0.11
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 +48 -22
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/request/index.d.ts +2 -0
- package/build/types/booking-v2/request/packaging/packaging-traject-request.d.ts +13 -0
- package/build/types/booking-v2/request/reprice-and-issue-ticket-request.d.ts +3 -0
- package/build/types/booking-v2/response/index.d.ts +1 -0
- package/build/types/booking-v2/response/packaging/packaging-traject-response.d.ts +57 -0
- package/build/types/enums/index.d.ts +3 -2
- package/build/types/enums/traject-node-type.d.ts +6 -0
- package/build/utils/booking-v2-client.d.ts +6 -0
- package/build/utils/packaging-client.d.ts +7 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -46,12 +46,6 @@ var DataType = {
|
|
|
46
46
|
template: "template",
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
exports.DateAmountType = void 0;
|
|
50
|
-
(function (DateAmountType) {
|
|
51
|
-
DateAmountType[(DateAmountType["days"] = 0)] = "days";
|
|
52
|
-
DateAmountType[(DateAmountType["months"] = 1)] = "months";
|
|
53
|
-
})(exports.DateAmountType || (exports.DateAmountType = {}));
|
|
54
|
-
|
|
55
49
|
var DossierType = {
|
|
56
50
|
hotelOnly: 0,
|
|
57
51
|
transportOnly: 1,
|
|
@@ -172,22 +166,6 @@ var PaymentType = {
|
|
|
172
166
|
cash: 3,
|
|
173
167
|
};
|
|
174
168
|
|
|
175
|
-
exports.PortalQsmType = void 0;
|
|
176
|
-
(function (PortalQsmType) {
|
|
177
|
-
PortalQsmType[(PortalQsmType["Multidestination"] = 0)] = "Multidestination";
|
|
178
|
-
PortalQsmType[(PortalQsmType["Accommodation"] = 1)] = "Accommodation";
|
|
179
|
-
PortalQsmType[(PortalQsmType["AccommodationAndFlight"] = 2)] =
|
|
180
|
-
"AccommodationAndFlight";
|
|
181
|
-
PortalQsmType[(PortalQsmType["Flight"] = 3)] = "Flight";
|
|
182
|
-
PortalQsmType[(PortalQsmType["RoundTrip"] = 4)] = "RoundTrip";
|
|
183
|
-
PortalQsmType[(PortalQsmType["GroupTour"] = 5)] = "GroupTour";
|
|
184
|
-
PortalQsmType[(PortalQsmType["Package"] = 6)] = "Package";
|
|
185
|
-
PortalQsmType[(PortalQsmType["Ticket"] = 7)] = "Ticket";
|
|
186
|
-
PortalQsmType[(PortalQsmType["Car"] = 8)] = "Car";
|
|
187
|
-
PortalQsmType[(PortalQsmType["Transfer"] = 9)] = "Transfer";
|
|
188
|
-
PortalQsmType[(PortalQsmType["Cruise"] = 10)] = "Cruise";
|
|
189
|
-
})(exports.PortalQsmType || (exports.PortalQsmType = {}));
|
|
190
|
-
|
|
191
169
|
var PriceChartType = {
|
|
192
170
|
purchasePrices: 0,
|
|
193
171
|
sellingPrices: 1,
|
|
@@ -292,6 +270,35 @@ var VendorType = {
|
|
|
292
270
|
sunnyCars: 20,
|
|
293
271
|
};
|
|
294
272
|
|
|
273
|
+
exports.DateAmountType = void 0;
|
|
274
|
+
(function (DateAmountType) {
|
|
275
|
+
DateAmountType[(DateAmountType["days"] = 0)] = "days";
|
|
276
|
+
DateAmountType[(DateAmountType["months"] = 1)] = "months";
|
|
277
|
+
})(exports.DateAmountType || (exports.DateAmountType = {}));
|
|
278
|
+
|
|
279
|
+
exports.PortalQsmType = void 0;
|
|
280
|
+
(function (PortalQsmType) {
|
|
281
|
+
PortalQsmType[(PortalQsmType["Multidestination"] = 0)] = "Multidestination";
|
|
282
|
+
PortalQsmType[(PortalQsmType["Accommodation"] = 1)] = "Accommodation";
|
|
283
|
+
PortalQsmType[(PortalQsmType["AccommodationAndFlight"] = 2)] =
|
|
284
|
+
"AccommodationAndFlight";
|
|
285
|
+
PortalQsmType[(PortalQsmType["Flight"] = 3)] = "Flight";
|
|
286
|
+
PortalQsmType[(PortalQsmType["RoundTrip"] = 4)] = "RoundTrip";
|
|
287
|
+
PortalQsmType[(PortalQsmType["GroupTour"] = 5)] = "GroupTour";
|
|
288
|
+
PortalQsmType[(PortalQsmType["Package"] = 6)] = "Package";
|
|
289
|
+
PortalQsmType[(PortalQsmType["Ticket"] = 7)] = "Ticket";
|
|
290
|
+
PortalQsmType[(PortalQsmType["Car"] = 8)] = "Car";
|
|
291
|
+
PortalQsmType[(PortalQsmType["Transfer"] = 9)] = "Transfer";
|
|
292
|
+
PortalQsmType[(PortalQsmType["Cruise"] = 10)] = "Cruise";
|
|
293
|
+
})(exports.PortalQsmType || (exports.PortalQsmType = {}));
|
|
294
|
+
|
|
295
|
+
var TrajectNodeType = {
|
|
296
|
+
regular: 0,
|
|
297
|
+
connectingNode: 1,
|
|
298
|
+
poi: 2,
|
|
299
|
+
subroute: 3,
|
|
300
|
+
};
|
|
301
|
+
|
|
295
302
|
/******************************************************************************
|
|
296
303
|
Copyright (c) Microsoft Corporation.
|
|
297
304
|
|
|
@@ -6653,6 +6660,8 @@ var ENDPOINT_ENTRY_STATUS = function (
|
|
|
6653
6660
|
};
|
|
6654
6661
|
var ENDPOINT_ELASTIC = ENDPOINT$a + "/elastic";
|
|
6655
6662
|
var ENDPOINT_FLIGHT_LINES = ENDPOINT$a + "/flightlines";
|
|
6663
|
+
var ENDPOINT_REPRICE_AND_ISSUE_TICKET =
|
|
6664
|
+
ENDPOINT$a + "/reprice-and-issue-ticket";
|
|
6656
6665
|
var availableFlights = function (config, request, signal) {
|
|
6657
6666
|
var url = "" + config.host + ENDPOINT_AVAILABLE_FLIGHTS;
|
|
6658
6667
|
var apiKey = config.apiKey;
|
|
@@ -6804,6 +6813,13 @@ var setEntryStatus = function (
|
|
|
6804
6813
|
var apiKey = config.apiKey;
|
|
6805
6814
|
return patch(url, apiKey, null, config.token, signal, true);
|
|
6806
6815
|
};
|
|
6816
|
+
// PRICING
|
|
6817
|
+
var repriceAndIssueTicket = function (config, request, signal) {
|
|
6818
|
+
var url = "" + config.host + ENDPOINT_REPRICE_AND_ISSUE_TICKET;
|
|
6819
|
+
var apiKey = config.apiKey;
|
|
6820
|
+
var body = JSON.stringify(request);
|
|
6821
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
6822
|
+
};
|
|
6807
6823
|
var flightLines = function (config, request, signal) {
|
|
6808
6824
|
var url = "" + config.host + ENDPOINT_FLIGHT_LINES;
|
|
6809
6825
|
var apiKey = config.apiKey;
|
|
@@ -7537,6 +7553,7 @@ var ENDPOINT_FLIGHTS = ENDPOINT$1 + "/flights";
|
|
|
7537
7553
|
var ENDPOINT_PRICE_DETAILS = ENDPOINT$1 + "/price-details";
|
|
7538
7554
|
var ENDPOINT_BOOK = ENDPOINT$1 + "/book";
|
|
7539
7555
|
var ENDPOINT_ITINERARY = ENDPOINT$1 + "/itinerary";
|
|
7556
|
+
var ENDPOINT_TRAJECT = ENDPOINT$1 + "/traject";
|
|
7540
7557
|
var ENDPOINT_ENTRY = function (magicLinkCode) {
|
|
7541
7558
|
return ENDPOINT$1 + "/entry/" + magicLinkCode;
|
|
7542
7559
|
};
|
|
@@ -7568,6 +7585,12 @@ var getEntry = function (config, magicLinkCode, signal) {
|
|
|
7568
7585
|
var url = "" + config.host + ENDPOINT_ENTRY(magicLinkCode);
|
|
7569
7586
|
return get(url, apiKey, config.token, signal, true);
|
|
7570
7587
|
};
|
|
7588
|
+
var getTrajectEntry = function (config, request, signal) {
|
|
7589
|
+
var url = "" + config.host + ENDPOINT_TRAJECT;
|
|
7590
|
+
var apiKey = config.apiKey;
|
|
7591
|
+
var body = JSON.stringify(request);
|
|
7592
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
7593
|
+
};
|
|
7571
7594
|
var getPriceDetails = function (config, request, signal) {
|
|
7572
7595
|
var url = "" + config.host + ENDPOINT_PRICE_DETAILS;
|
|
7573
7596
|
var apiKey = config.apiKey;
|
|
@@ -7642,6 +7665,7 @@ exports.RoomType = RoomType;
|
|
|
7642
7665
|
exports.SaleType = SaleType;
|
|
7643
7666
|
exports.ServiceTokenError = ServiceTokenError;
|
|
7644
7667
|
exports.ServiceType = ServiceType;
|
|
7668
|
+
exports.TrajectNodeType = TrajectNodeType;
|
|
7645
7669
|
exports.VendorType = VendorType;
|
|
7646
7670
|
exports.agents = agents;
|
|
7647
7671
|
exports.alternateFlights = alternateFlights;
|
|
@@ -7698,6 +7722,7 @@ exports.getPortal = getPortal;
|
|
|
7698
7722
|
exports.getPriceDetails = getPriceDetails;
|
|
7699
7723
|
exports.getPrintActions = getPrintActions;
|
|
7700
7724
|
exports.getStyleSheet = getStyleSheet;
|
|
7725
|
+
exports.getTrajectEntry = getTrajectEntry;
|
|
7701
7726
|
exports.getTranslationDictionary = getTranslationDictionary;
|
|
7702
7727
|
exports.getTravelAgents = getTravelAgents;
|
|
7703
7728
|
exports.getWebsiteConfiguration = getWebsiteConfiguration;
|
|
@@ -7707,6 +7732,7 @@ exports.priceDetails = priceDetails;
|
|
|
7707
7732
|
exports.prices = prices;
|
|
7708
7733
|
exports.print = print;
|
|
7709
7734
|
exports.readForm = readForm;
|
|
7735
|
+
exports.repriceAndIssueTicket = repriceAndIssueTicket;
|
|
7710
7736
|
exports.resetPassword = resetPassword;
|
|
7711
7737
|
exports.search = search;
|
|
7712
7738
|
exports.searchCountries = searchCountries;
|