@qite/tide-client 26.6.0-preview.0 → 26.6.0-preview.2
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 +62 -6
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/response/booking-cancellation-reason.d.ts +9 -0
- package/build/types/booking-v2/response/index.d.ts +1 -0
- package/build/types/booking-v2/response/packaging/packaging-accommodation-response.d.ts +1 -0
- package/build/types/enums/index.d.ts +2 -0
- package/build/types/enums/trip-builder-view.d.ts +4 -0
- package/build/types/enums/trip-editor-type.d.ts +5 -0
- package/build/types/offer/dossier-view-result.d.ts +5 -0
- package/build/types/offer/entry.d.ts +5 -0
- package/build/types/web/website-configuration.d.ts +4 -1
- package/build/utils/booking-v2-client.d.ts +20 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -307,6 +307,19 @@ var TrajectNodeType = {
|
|
|
307
307
|
subroute: 3,
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
+
exports.TripBuilderView = void 0;
|
|
311
|
+
(function (TripBuilderView) {
|
|
312
|
+
TripBuilderView[(TripBuilderView["Detailed"] = 0)] = "Detailed";
|
|
313
|
+
TripBuilderView[(TripBuilderView["Compact"] = 1)] = "Compact";
|
|
314
|
+
})(exports.TripBuilderView || (exports.TripBuilderView = {}));
|
|
315
|
+
|
|
316
|
+
exports.TripEditorType = void 0;
|
|
317
|
+
(function (TripEditorType) {
|
|
318
|
+
TripEditorType[(TripEditorType["None"] = 0)] = "None";
|
|
319
|
+
TripEditorType[(TripEditorType["TripOverview"] = 1)] = "TripOverview";
|
|
320
|
+
TripEditorType[(TripEditorType["TripBuilder"] = 2)] = "TripBuilder";
|
|
321
|
+
})(exports.TripEditorType || (exports.TripEditorType = {}));
|
|
322
|
+
|
|
310
323
|
exports.UnitOfMeasure = void 0;
|
|
311
324
|
(function (UnitOfMeasure) {
|
|
312
325
|
UnitOfMeasure[(UnitOfMeasure["cm"] = 0)] = "cm";
|
|
@@ -6723,17 +6736,31 @@ var ENDPOINT_CUSTOM_ENTRY_STATUS$1 = function (
|
|
|
6723
6736
|
var ENDPOINT_ENTRY_STATUS = function (
|
|
6724
6737
|
dossierNumber,
|
|
6725
6738
|
entryStatus,
|
|
6726
|
-
customEntryStatusId
|
|
6739
|
+
customEntryStatusId,
|
|
6740
|
+
cancellationReasonId,
|
|
6741
|
+
cancellationRemark
|
|
6727
6742
|
) {
|
|
6743
|
+
var query = [];
|
|
6744
|
+
if (customEntryStatusId !== undefined)
|
|
6745
|
+
query.push("customEntryStatusId=" + customEntryStatusId);
|
|
6746
|
+
if (cancellationReasonId !== undefined)
|
|
6747
|
+
query.push("cancellationReasonId=" + cancellationReasonId);
|
|
6748
|
+
if (cancellationRemark)
|
|
6749
|
+
query.push("cancellationRemark=" + encodeURIComponent(cancellationRemark));
|
|
6728
6750
|
return (
|
|
6729
6751
|
ENDPOINT$c +
|
|
6730
6752
|
"/entry-status/" +
|
|
6731
6753
|
dossierNumber +
|
|
6732
6754
|
"/" +
|
|
6733
6755
|
entryStatus +
|
|
6734
|
-
(
|
|
6735
|
-
|
|
6736
|
-
|
|
6756
|
+
(query.length ? "?" + query.join("&") : "")
|
|
6757
|
+
);
|
|
6758
|
+
};
|
|
6759
|
+
var ENDPOINT_CANCELLATION_REASONS = function (entryStatus) {
|
|
6760
|
+
return (
|
|
6761
|
+
ENDPOINT$c +
|
|
6762
|
+
"/cancellation-reasons" +
|
|
6763
|
+
(entryStatus !== undefined ? "?entryStatus=" + entryStatus : "")
|
|
6737
6764
|
);
|
|
6738
6765
|
};
|
|
6739
6766
|
var ENDPOINT_ELASTIC = ENDPOINT$c + "/elastic";
|
|
@@ -6877,20 +6904,48 @@ var setCustomEntryStatus = function (
|
|
|
6877
6904
|
var apiKey = config.apiKey;
|
|
6878
6905
|
return patch(url, apiKey, null, config.token, signal, true);
|
|
6879
6906
|
};
|
|
6907
|
+
/**
|
|
6908
|
+
* Moves a dossier to a status. When that cancels it, `cancellationReasonId` (from
|
|
6909
|
+
* `getCancellationReasons`) says why, and `cancellationRemark` is the customer's own
|
|
6910
|
+
* explanation (kept for the reason "Other"); without a reason Tide files it under "Other".
|
|
6911
|
+
* The two cancellation arguments come last so existing calls keep compiling.
|
|
6912
|
+
*/
|
|
6880
6913
|
var setEntryStatus = function (
|
|
6881
6914
|
config,
|
|
6882
6915
|
dossierNumber,
|
|
6883
6916
|
entryStatus,
|
|
6884
6917
|
customEntryStatusId,
|
|
6885
|
-
signal
|
|
6918
|
+
signal,
|
|
6919
|
+
cancellationReasonId,
|
|
6920
|
+
cancellationRemark
|
|
6886
6921
|
) {
|
|
6887
6922
|
var url =
|
|
6888
6923
|
"" +
|
|
6889
6924
|
config.host +
|
|
6890
|
-
ENDPOINT_ENTRY_STATUS(
|
|
6925
|
+
ENDPOINT_ENTRY_STATUS(
|
|
6926
|
+
dossierNumber,
|
|
6927
|
+
entryStatus,
|
|
6928
|
+
customEntryStatusId,
|
|
6929
|
+
cancellationReasonId,
|
|
6930
|
+
cancellationRemark
|
|
6931
|
+
);
|
|
6891
6932
|
var apiKey = config.apiKey;
|
|
6892
6933
|
return patch(url, apiKey, null, config.token, signal, true);
|
|
6893
6934
|
};
|
|
6935
|
+
/**
|
|
6936
|
+
* The reasons a customer can give when cancelling a dossier in this status, named in
|
|
6937
|
+
* `languageCode`. An option counts as a booking; without `entryStatus` Tide answers for a booking.
|
|
6938
|
+
*/
|
|
6939
|
+
var getCancellationReasons = function (
|
|
6940
|
+
config,
|
|
6941
|
+
entryStatus,
|
|
6942
|
+
signal,
|
|
6943
|
+
languageCode
|
|
6944
|
+
) {
|
|
6945
|
+
var url = "" + config.host + ENDPOINT_CANCELLATION_REASONS(entryStatus);
|
|
6946
|
+
var apiKey = config.apiKey;
|
|
6947
|
+
return get(url, apiKey, config.token, signal, true, languageCode);
|
|
6948
|
+
};
|
|
6894
6949
|
// PRICING
|
|
6895
6950
|
var repriceAndIssueTicket = function (config, request, signal) {
|
|
6896
6951
|
var url = "" + config.host + ENDPOINT_REPRICE_AND_ISSUE_TICKET;
|
|
@@ -8104,6 +8159,7 @@ exports.getAllotment = getAllotment;
|
|
|
8104
8159
|
exports.getAllotmentAvailability = getAllotmentAvailability;
|
|
8105
8160
|
exports.getAllotmentList = getAllotmentList;
|
|
8106
8161
|
exports.getAvailableGeographicalRegions = getAvailableGeographicalRegions;
|
|
8162
|
+
exports.getCancellationReasons = getCancellationReasons;
|
|
8107
8163
|
exports.getContentDraft = getContentDraft;
|
|
8108
8164
|
exports.getContentDraftByProperty = getContentDraftByProperty;
|
|
8109
8165
|
exports.getContentDraftByTemplate = getContentDraftByTemplate;
|