@qite/tide-client 2.0.18 → 2.0.20
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 +105 -54
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/shared/booking-package-custom-field.d.ts +4 -0
- package/build/types/booking-v2/shared/booking-package-pax-custom-field.d.ts +8 -0
- package/build/types/booking-v2/shared/booking-package-pax.d.ts +6 -0
- package/build/types/booking-v2/shared/booking-package.d.ts +2 -0
- package/build/types/booking-v2/shared/index.d.ts +2 -0
- package/build/types/enums/custom-field-data-type.d.ts +7 -0
- package/build/types/enums/height-type.d.ts +4 -0
- package/build/types/enums/index.d.ts +8 -5
- package/build/types/enums/weight-type.d.ts +4 -0
- package/build/types/web/content-by-parent-request.d.ts +2 -3
- package/build/types/web/content-by-property-request.d.ts +2 -3
- package/build/types/web/content-by-template-request.d.ts +2 -3
- package/build/types/web/content-filter-request.d.ts +4 -0
- package/build/types/web/index.d.ts +12 -11
- package/build/utils/web-content-client.d.ts +27 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -31,6 +31,14 @@ exports.AvailabilitySearchType = void 0;
|
|
|
31
31
|
AvailabilitySearchType[(AvailabilitySearchType["flight"] = 3)] = "flight";
|
|
32
32
|
})(exports.AvailabilitySearchType || (exports.AvailabilitySearchType = {}));
|
|
33
33
|
|
|
34
|
+
var CustomFieldDataType = {
|
|
35
|
+
bool: 0,
|
|
36
|
+
date: 1,
|
|
37
|
+
time: 2,
|
|
38
|
+
string: 3,
|
|
39
|
+
numeric: 4,
|
|
40
|
+
};
|
|
41
|
+
|
|
34
42
|
var DataType = {
|
|
35
43
|
text: "text",
|
|
36
44
|
numeric: "number",
|
|
@@ -46,6 +54,12 @@ var DataType = {
|
|
|
46
54
|
template: "template",
|
|
47
55
|
};
|
|
48
56
|
|
|
57
|
+
exports.DateAmountType = void 0;
|
|
58
|
+
(function (DateAmountType) {
|
|
59
|
+
DateAmountType[(DateAmountType["days"] = 0)] = "days";
|
|
60
|
+
DateAmountType[(DateAmountType["months"] = 1)] = "months";
|
|
61
|
+
})(exports.DateAmountType || (exports.DateAmountType = {}));
|
|
62
|
+
|
|
49
63
|
var DossierType = {
|
|
50
64
|
hotelOnly: 0,
|
|
51
65
|
transportOnly: 1,
|
|
@@ -53,6 +67,13 @@ var DossierType = {
|
|
|
53
67
|
package: 3,
|
|
54
68
|
};
|
|
55
69
|
|
|
70
|
+
var DurationType = {
|
|
71
|
+
hours: 0,
|
|
72
|
+
days: 1,
|
|
73
|
+
nights: 2,
|
|
74
|
+
minutes: 3,
|
|
75
|
+
};
|
|
76
|
+
|
|
56
77
|
var EntryLineFlag = {
|
|
57
78
|
none: 0,
|
|
58
79
|
allotmentNoPlace: 1,
|
|
@@ -130,6 +151,11 @@ var Gender = {
|
|
|
130
151
|
other: 2,
|
|
131
152
|
};
|
|
132
153
|
|
|
154
|
+
var HeightType = {
|
|
155
|
+
centimeters: 0,
|
|
156
|
+
feetInches: 1,
|
|
157
|
+
};
|
|
158
|
+
|
|
133
159
|
exports.MetaDataItemPropertyType = void 0;
|
|
134
160
|
(function (MetaDataItemPropertyType) {
|
|
135
161
|
MetaDataItemPropertyType[(MetaDataItemPropertyType["Height"] = 0)] = "Height";
|
|
@@ -166,6 +192,22 @@ var PaymentType = {
|
|
|
166
192
|
cash: 3,
|
|
167
193
|
};
|
|
168
194
|
|
|
195
|
+
exports.PortalQsmType = void 0;
|
|
196
|
+
(function (PortalQsmType) {
|
|
197
|
+
PortalQsmType[(PortalQsmType["Multidestination"] = 0)] = "Multidestination";
|
|
198
|
+
PortalQsmType[(PortalQsmType["Accommodation"] = 1)] = "Accommodation";
|
|
199
|
+
PortalQsmType[(PortalQsmType["AccommodationAndFlight"] = 2)] =
|
|
200
|
+
"AccommodationAndFlight";
|
|
201
|
+
PortalQsmType[(PortalQsmType["Flight"] = 3)] = "Flight";
|
|
202
|
+
PortalQsmType[(PortalQsmType["RoundTrip"] = 4)] = "RoundTrip";
|
|
203
|
+
PortalQsmType[(PortalQsmType["GroupTour"] = 5)] = "GroupTour";
|
|
204
|
+
PortalQsmType[(PortalQsmType["Package"] = 6)] = "Package";
|
|
205
|
+
PortalQsmType[(PortalQsmType["Ticket"] = 7)] = "Ticket";
|
|
206
|
+
PortalQsmType[(PortalQsmType["Car"] = 8)] = "Car";
|
|
207
|
+
PortalQsmType[(PortalQsmType["Transfer"] = 9)] = "Transfer";
|
|
208
|
+
PortalQsmType[(PortalQsmType["Cruise"] = 10)] = "Cruise";
|
|
209
|
+
})(exports.PortalQsmType || (exports.PortalQsmType = {}));
|
|
210
|
+
|
|
169
211
|
var PriceChartType = {
|
|
170
212
|
purchasePrices: 0,
|
|
171
213
|
sellingPrices: 1,
|
|
@@ -199,6 +241,26 @@ var RoomType = {
|
|
|
199
241
|
pk6: 5,
|
|
200
242
|
};
|
|
201
243
|
|
|
244
|
+
var RouteTransportType = {
|
|
245
|
+
none: 0,
|
|
246
|
+
privateTransport: 1,
|
|
247
|
+
publicTransport: 2,
|
|
248
|
+
rentalCar: 3,
|
|
249
|
+
bus: 4,
|
|
250
|
+
camper: 5,
|
|
251
|
+
car: 6,
|
|
252
|
+
charter: 7,
|
|
253
|
+
cruise: 8,
|
|
254
|
+
ferry: 9,
|
|
255
|
+
flight: 10,
|
|
256
|
+
taxi: 11,
|
|
257
|
+
train: 12,
|
|
258
|
+
transfer: 13,
|
|
259
|
+
rocket: 14,
|
|
260
|
+
walking: 15,
|
|
261
|
+
cycling: 16,
|
|
262
|
+
};
|
|
263
|
+
|
|
202
264
|
var SaleType = {
|
|
203
265
|
ownOrganization: 0,
|
|
204
266
|
resale: 1,
|
|
@@ -238,6 +300,13 @@ var ServiceType = {
|
|
|
238
300
|
camp: 30,
|
|
239
301
|
};
|
|
240
302
|
|
|
303
|
+
var TrajectNodeType = {
|
|
304
|
+
regular: 0,
|
|
305
|
+
connectingNode: 1,
|
|
306
|
+
poi: 2,
|
|
307
|
+
subroute: 3,
|
|
308
|
+
};
|
|
309
|
+
|
|
241
310
|
exports.UnitOfMeasure = void 0;
|
|
242
311
|
(function (UnitOfMeasure) {
|
|
243
312
|
UnitOfMeasure[(UnitOfMeasure["cm"] = 0)] = "cm";
|
|
@@ -270,60 +339,9 @@ var VendorType = {
|
|
|
270
339
|
sunnyCars: 20,
|
|
271
340
|
};
|
|
272
341
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
302
|
-
var DurationType = {
|
|
303
|
-
hours: 0,
|
|
304
|
-
days: 1,
|
|
305
|
-
nights: 2,
|
|
306
|
-
minutes: 3,
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
var RouteTransportType = {
|
|
310
|
-
none: 0,
|
|
311
|
-
privateTransport: 1,
|
|
312
|
-
publicTransport: 2,
|
|
313
|
-
rentalCar: 3,
|
|
314
|
-
bus: 4,
|
|
315
|
-
camper: 5,
|
|
316
|
-
car: 6,
|
|
317
|
-
charter: 7,
|
|
318
|
-
cruise: 8,
|
|
319
|
-
ferry: 9,
|
|
320
|
-
flight: 10,
|
|
321
|
-
taxi: 11,
|
|
322
|
-
train: 12,
|
|
323
|
-
transfer: 13,
|
|
324
|
-
rocket: 14,
|
|
325
|
-
walking: 15,
|
|
326
|
-
cycling: 16,
|
|
342
|
+
var WeightType = {
|
|
343
|
+
kilograms: 0,
|
|
344
|
+
pounds: 1,
|
|
327
345
|
};
|
|
328
346
|
|
|
329
347
|
/******************************************************************************
|
|
@@ -7457,6 +7475,34 @@ var getContentDraft = function (config, signal) {
|
|
|
7457
7475
|
var apiKey = config.apiKey;
|
|
7458
7476
|
return get(url, apiKey, config.token, signal, true);
|
|
7459
7477
|
};
|
|
7478
|
+
/**
|
|
7479
|
+
* api/web/content/live/filtered
|
|
7480
|
+
* Gets filtered Live content
|
|
7481
|
+
* @param config
|
|
7482
|
+
* @param request
|
|
7483
|
+
* @param signal
|
|
7484
|
+
* @returns OK if succeeded.
|
|
7485
|
+
*/
|
|
7486
|
+
var getFilteredContentLive = function (config, request, signal) {
|
|
7487
|
+
var url = "" + config.host + ENDPOINT_LIVE + "/filtered";
|
|
7488
|
+
var apiKey = config.apiKey;
|
|
7489
|
+
var body = JSON.stringify(request);
|
|
7490
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
7491
|
+
};
|
|
7492
|
+
/**
|
|
7493
|
+
* api/web/content/draft/filtered
|
|
7494
|
+
* Gets filtered Draft (Internal) content
|
|
7495
|
+
* @param config
|
|
7496
|
+
* @param request
|
|
7497
|
+
* @param signal
|
|
7498
|
+
* @returns OK if succeeded.
|
|
7499
|
+
*/
|
|
7500
|
+
var getFilteredContentDraft = function (config, request, signal) {
|
|
7501
|
+
var url = "" + config.host + ENDPOINT_DRAFT + "/filtered";
|
|
7502
|
+
var apiKey = config.apiKey;
|
|
7503
|
+
var body = JSON.stringify(request);
|
|
7504
|
+
return post(url, apiKey, body, config.token, signal, true);
|
|
7505
|
+
};
|
|
7460
7506
|
/**
|
|
7461
7507
|
* api/web/content/live/by-property
|
|
7462
7508
|
* Gets Live content matching a property value (or values).
|
|
@@ -7675,6 +7721,7 @@ var submitForm = function (config, id, request, signal) {
|
|
|
7675
7721
|
};
|
|
7676
7722
|
|
|
7677
7723
|
exports.AllotmentType = AllotmentType;
|
|
7724
|
+
exports.CustomFieldDataType = CustomFieldDataType;
|
|
7678
7725
|
exports.DataType = DataType;
|
|
7679
7726
|
exports.DossierType = DossierType;
|
|
7680
7727
|
exports.DurationType = DurationType;
|
|
@@ -7685,6 +7732,7 @@ exports.FormFieldType = FormFieldType;
|
|
|
7685
7732
|
exports.FormFieldWidth = FormFieldWidth;
|
|
7686
7733
|
exports.FormType = FormType;
|
|
7687
7734
|
exports.Gender = Gender;
|
|
7735
|
+
exports.HeightType = HeightType;
|
|
7688
7736
|
exports.MetaDataType = MetaDataType;
|
|
7689
7737
|
exports.PaymentType = PaymentType;
|
|
7690
7738
|
exports.PriceChartType = PriceChartType;
|
|
@@ -7696,6 +7744,7 @@ exports.ServiceTokenError = ServiceTokenError;
|
|
|
7696
7744
|
exports.ServiceType = ServiceType;
|
|
7697
7745
|
exports.TrajectNodeType = TrajectNodeType;
|
|
7698
7746
|
exports.VendorType = VendorType;
|
|
7747
|
+
exports.WeightType = WeightType;
|
|
7699
7748
|
exports.agents = agents;
|
|
7700
7749
|
exports.alternateFlights = alternateFlights;
|
|
7701
7750
|
exports.alternateHotels = alternateHotels;
|
|
@@ -7743,6 +7792,8 @@ exports.getEntryList = getEntryList;
|
|
|
7743
7792
|
exports.getEntryListv2 = getEntryListv2;
|
|
7744
7793
|
exports.getEntryStatus = getEntryStatus;
|
|
7745
7794
|
exports.getEntryTotals = getEntryTotals;
|
|
7795
|
+
exports.getFilteredContentDraft = getFilteredContentDraft;
|
|
7796
|
+
exports.getFilteredContentLive = getFilteredContentLive;
|
|
7746
7797
|
exports.getInvoiceList = getInvoiceList;
|
|
7747
7798
|
exports.getItinerary = getItinerary;
|
|
7748
7799
|
exports.getLocations = getLocations;
|