@qite/tide-client 2.1.0-preview.3 → 26.6.0-preview.1
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 +49 -6
- package/build/index.js.map +1 -1
- package/build/types/booking-v2/request/booking-package-details-request.d.ts +1 -0
- package/build/types/booking-v2/request/packaging/packaging-accommodation-request.d.ts +1 -0
- package/build/types/booking-v2/response/booking-cancellation-reason.d.ts +9 -0
- package/build/types/booking-v2/response/booking-product-notification.d.ts +1 -0
- package/build/types/booking-v2/response/index.d.ts +1 -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 +1 -0
- package/build/utils/booking-v2-client.d.ts +20 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -6723,17 +6723,31 @@ var ENDPOINT_CUSTOM_ENTRY_STATUS$1 = function (
|
|
|
6723
6723
|
var ENDPOINT_ENTRY_STATUS = function (
|
|
6724
6724
|
dossierNumber,
|
|
6725
6725
|
entryStatus,
|
|
6726
|
-
customEntryStatusId
|
|
6726
|
+
customEntryStatusId,
|
|
6727
|
+
cancellationReasonId,
|
|
6728
|
+
cancellationRemark
|
|
6727
6729
|
) {
|
|
6730
|
+
var query = [];
|
|
6731
|
+
if (customEntryStatusId !== undefined)
|
|
6732
|
+
query.push("customEntryStatusId=" + customEntryStatusId);
|
|
6733
|
+
if (cancellationReasonId !== undefined)
|
|
6734
|
+
query.push("cancellationReasonId=" + cancellationReasonId);
|
|
6735
|
+
if (cancellationRemark)
|
|
6736
|
+
query.push("cancellationRemark=" + encodeURIComponent(cancellationRemark));
|
|
6728
6737
|
return (
|
|
6729
6738
|
ENDPOINT$c +
|
|
6730
6739
|
"/entry-status/" +
|
|
6731
6740
|
dossierNumber +
|
|
6732
6741
|
"/" +
|
|
6733
6742
|
entryStatus +
|
|
6734
|
-
(
|
|
6735
|
-
|
|
6736
|
-
|
|
6743
|
+
(query.length ? "?" + query.join("&") : "")
|
|
6744
|
+
);
|
|
6745
|
+
};
|
|
6746
|
+
var ENDPOINT_CANCELLATION_REASONS = function (entryStatus) {
|
|
6747
|
+
return (
|
|
6748
|
+
ENDPOINT$c +
|
|
6749
|
+
"/cancellation-reasons" +
|
|
6750
|
+
(entryStatus !== undefined ? "?entryStatus=" + entryStatus : "")
|
|
6737
6751
|
);
|
|
6738
6752
|
};
|
|
6739
6753
|
var ENDPOINT_ELASTIC = ENDPOINT$c + "/elastic";
|
|
@@ -6877,20 +6891,48 @@ var setCustomEntryStatus = function (
|
|
|
6877
6891
|
var apiKey = config.apiKey;
|
|
6878
6892
|
return patch(url, apiKey, null, config.token, signal, true);
|
|
6879
6893
|
};
|
|
6894
|
+
/**
|
|
6895
|
+
* Moves a dossier to a status. When that cancels it, `cancellationReasonId` (from
|
|
6896
|
+
* `getCancellationReasons`) says why, and `cancellationRemark` is the customer's own
|
|
6897
|
+
* explanation (kept for the reason "Other"); without a reason Tide files it under "Other".
|
|
6898
|
+
* The two cancellation arguments come last so existing calls keep compiling.
|
|
6899
|
+
*/
|
|
6880
6900
|
var setEntryStatus = function (
|
|
6881
6901
|
config,
|
|
6882
6902
|
dossierNumber,
|
|
6883
6903
|
entryStatus,
|
|
6884
6904
|
customEntryStatusId,
|
|
6885
|
-
signal
|
|
6905
|
+
signal,
|
|
6906
|
+
cancellationReasonId,
|
|
6907
|
+
cancellationRemark
|
|
6886
6908
|
) {
|
|
6887
6909
|
var url =
|
|
6888
6910
|
"" +
|
|
6889
6911
|
config.host +
|
|
6890
|
-
ENDPOINT_ENTRY_STATUS(
|
|
6912
|
+
ENDPOINT_ENTRY_STATUS(
|
|
6913
|
+
dossierNumber,
|
|
6914
|
+
entryStatus,
|
|
6915
|
+
customEntryStatusId,
|
|
6916
|
+
cancellationReasonId,
|
|
6917
|
+
cancellationRemark
|
|
6918
|
+
);
|
|
6891
6919
|
var apiKey = config.apiKey;
|
|
6892
6920
|
return patch(url, apiKey, null, config.token, signal, true);
|
|
6893
6921
|
};
|
|
6922
|
+
/**
|
|
6923
|
+
* The reasons a customer can give when cancelling a dossier in this status, named in
|
|
6924
|
+
* `languageCode`. An option counts as a booking; without `entryStatus` Tide answers for a booking.
|
|
6925
|
+
*/
|
|
6926
|
+
var getCancellationReasons = function (
|
|
6927
|
+
config,
|
|
6928
|
+
entryStatus,
|
|
6929
|
+
signal,
|
|
6930
|
+
languageCode
|
|
6931
|
+
) {
|
|
6932
|
+
var url = "" + config.host + ENDPOINT_CANCELLATION_REASONS(entryStatus);
|
|
6933
|
+
var apiKey = config.apiKey;
|
|
6934
|
+
return get(url, apiKey, config.token, signal, true, languageCode);
|
|
6935
|
+
};
|
|
6894
6936
|
// PRICING
|
|
6895
6937
|
var repriceAndIssueTicket = function (config, request, signal) {
|
|
6896
6938
|
var url = "" + config.host + ENDPOINT_REPRICE_AND_ISSUE_TICKET;
|
|
@@ -8104,6 +8146,7 @@ exports.getAllotment = getAllotment;
|
|
|
8104
8146
|
exports.getAllotmentAvailability = getAllotmentAvailability;
|
|
8105
8147
|
exports.getAllotmentList = getAllotmentList;
|
|
8106
8148
|
exports.getAvailableGeographicalRegions = getAvailableGeographicalRegions;
|
|
8149
|
+
exports.getCancellationReasons = getCancellationReasons;
|
|
8107
8150
|
exports.getContentDraft = getContentDraft;
|
|
8108
8151
|
exports.getContentDraftByProperty = getContentDraftByProperty;
|
|
8109
8152
|
exports.getContentDraftByTemplate = getContentDraftByTemplate;
|