@qite/tide-client 1.1.144 → 1.1.146
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 +40 -5
- package/build/index.js.map +1 -1
- package/build/types/enums/availability-search-type.d.ts +6 -4
- package/build/types/enums/date-amount-type.d.ts +4 -0
- package/build/types/enums/index.d.ts +2 -0
- package/build/types/enums/portal-qsm-type.d.ts +13 -0
- package/build/types/web/index.d.ts +1 -0
- package/build/types/web/website-configuration.d.ts +32 -0
- package/build/utils/web-client.d.ts +6 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -21,10 +21,15 @@ var AllotmentType = {
|
|
|
21
21
|
allotment: 2,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
exports.AvailabilitySearchType = void 0;
|
|
25
|
+
(function (AvailabilitySearchType) {
|
|
26
|
+
AvailabilitySearchType[(AvailabilitySearchType["default"] = 0)] = "default";
|
|
27
|
+
AvailabilitySearchType[(AvailabilitySearchType["allotment"] = 1)] =
|
|
28
|
+
"allotment";
|
|
29
|
+
AvailabilitySearchType[(AvailabilitySearchType["fixedDuration"] = 2)] =
|
|
30
|
+
"fixedDuration";
|
|
31
|
+
AvailabilitySearchType[(AvailabilitySearchType["flight"] = 3)] = "flight";
|
|
32
|
+
})(exports.AvailabilitySearchType || (exports.AvailabilitySearchType = {}));
|
|
28
33
|
|
|
29
34
|
var DataType = {
|
|
30
35
|
text: "text",
|
|
@@ -228,6 +233,28 @@ var VendorType = {
|
|
|
228
233
|
sunnyCars: 20,
|
|
229
234
|
};
|
|
230
235
|
|
|
236
|
+
exports.DateAmountType = void 0;
|
|
237
|
+
(function (DateAmountType) {
|
|
238
|
+
DateAmountType[(DateAmountType["days"] = 0)] = "days";
|
|
239
|
+
DateAmountType[(DateAmountType["months"] = 1)] = "months";
|
|
240
|
+
})(exports.DateAmountType || (exports.DateAmountType = {}));
|
|
241
|
+
|
|
242
|
+
exports.PortalQsmType = void 0;
|
|
243
|
+
(function (PortalQsmType) {
|
|
244
|
+
PortalQsmType[(PortalQsmType["Multidestination"] = 0)] = "Multidestination";
|
|
245
|
+
PortalQsmType[(PortalQsmType["Accommodation"] = 1)] = "Accommodation";
|
|
246
|
+
PortalQsmType[(PortalQsmType["AccommodationAndFlight"] = 2)] =
|
|
247
|
+
"AccommodationAndFlight";
|
|
248
|
+
PortalQsmType[(PortalQsmType["Flight"] = 3)] = "Flight";
|
|
249
|
+
PortalQsmType[(PortalQsmType["RoundTrip"] = 4)] = "RoundTrip";
|
|
250
|
+
PortalQsmType[(PortalQsmType["GroupTour"] = 5)] = "GroupTour";
|
|
251
|
+
PortalQsmType[(PortalQsmType["Package"] = 6)] = "Package";
|
|
252
|
+
PortalQsmType[(PortalQsmType["Ticket"] = 7)] = "Ticket";
|
|
253
|
+
PortalQsmType[(PortalQsmType["Car"] = 8)] = "Car";
|
|
254
|
+
PortalQsmType[(PortalQsmType["Transfer"] = 9)] = "Transfer";
|
|
255
|
+
PortalQsmType[(PortalQsmType["Cruise"] = 10)] = "Cruise";
|
|
256
|
+
})(exports.PortalQsmType || (exports.PortalQsmType = {}));
|
|
257
|
+
|
|
231
258
|
/******************************************************************************
|
|
232
259
|
Copyright (c) Microsoft Corporation.
|
|
233
260
|
|
|
@@ -6866,6 +6893,9 @@ var ENDPOINT_CREATE_AFFILIATES = ENDPOINT$2 + "/affiliates";
|
|
|
6866
6893
|
var ENDPOINT_TRANSLATION_DICTIONARY = ENDPOINT$2 + "/translation-dictionary";
|
|
6867
6894
|
var ENDPOINT_BOOKING_ACCOMMODATION = ENDPOINT$2 + "/booking-accommodation";
|
|
6868
6895
|
var ENDPOINT_LOCATIONS = ENDPOINT$2 + "/entity/locations";
|
|
6896
|
+
var ENDPOINT_WEBSITE_CONFIGURATION = function (portalId) {
|
|
6897
|
+
return ENDPOINT$2 + "/website/" + portalId + "/configuration";
|
|
6898
|
+
};
|
|
6869
6899
|
/**
|
|
6870
6900
|
* api/web/crmcontact
|
|
6871
6901
|
* Creates a CRM contact.
|
|
@@ -6924,6 +6954,11 @@ var getLocations = function (config, request, signal) {
|
|
|
6924
6954
|
var body = JSON.stringify(request);
|
|
6925
6955
|
return post(url, apiKey, body, config.token, signal);
|
|
6926
6956
|
};
|
|
6957
|
+
var getWebsiteConfiguration = function (config, id, signal) {
|
|
6958
|
+
var url = "" + config.host + ENDPOINT_WEBSITE_CONFIGURATION(id);
|
|
6959
|
+
var apiKey = config.apiKey;
|
|
6960
|
+
return get(url, apiKey, config.token, signal, true);
|
|
6961
|
+
};
|
|
6927
6962
|
|
|
6928
6963
|
var ENDPOINT$1 = "/api/web/contact";
|
|
6929
6964
|
var ENDPOINT_CONTACT_FORM = ENDPOINT$1 + "/contact-form";
|
|
@@ -6980,7 +7015,6 @@ var feedXmlFolder = function (config, slug, folder, signal) {
|
|
|
6980
7015
|
};
|
|
6981
7016
|
|
|
6982
7017
|
exports.AllotmentType = AllotmentType;
|
|
6983
|
-
exports.AvailabilitySearchType = AvailabilitySearchType;
|
|
6984
7018
|
exports.ContactForm = ContactForm;
|
|
6985
7019
|
exports.DataType = DataType;
|
|
6986
7020
|
exports.DossierType = DossierType;
|
|
@@ -7035,6 +7069,7 @@ exports.getMolliePayment = getMolliePayment;
|
|
|
7035
7069
|
exports.getPortal = getPortal;
|
|
7036
7070
|
exports.getPrintActions = getPrintActions;
|
|
7037
7071
|
exports.getTranslationDictionary = getTranslationDictionary;
|
|
7072
|
+
exports.getWebsiteConfiguration = getWebsiteConfiguration;
|
|
7038
7073
|
exports.login = login;
|
|
7039
7074
|
exports.logout = logout;
|
|
7040
7075
|
exports.priceDetails = priceDetails;
|