@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
|
@@ -2,6 +2,7 @@ export * from "./available-country";
|
|
|
2
2
|
export * from "./available-flight";
|
|
3
3
|
export * from "./base-price";
|
|
4
4
|
export * from "./bookable-dates";
|
|
5
|
+
export * from "./booking-cancellation-reason";
|
|
5
6
|
export * from "./booking-package-allotment-info";
|
|
6
7
|
export * from "./booking-package-dossier";
|
|
7
8
|
export * from "./booking-package-flight-combination";
|
|
@@ -29,6 +29,8 @@ export * from "./route-transport-type";
|
|
|
29
29
|
export * from "./sale-type";
|
|
30
30
|
export * from "./service-type";
|
|
31
31
|
export * from "./traject-node-type";
|
|
32
|
+
export * from "./trip-builder-view";
|
|
33
|
+
export * from "./trip-editor-type";
|
|
32
34
|
export * from "./unit-of-measure";
|
|
33
35
|
export * from "./vendor-type";
|
|
34
36
|
export * from "./weight-type";
|
|
@@ -16,6 +16,11 @@ export interface DossierViewResult {
|
|
|
16
16
|
dateModified: Date;
|
|
17
17
|
status: number;
|
|
18
18
|
customEntryStatusId?: number;
|
|
19
|
+
cancellationReasonId?: number;
|
|
20
|
+
cancellationReasonName?: string;
|
|
21
|
+
cancellationRemark?: string;
|
|
22
|
+
cancelledByName?: string;
|
|
23
|
+
cancelledOn?: Date;
|
|
19
24
|
isB2B: boolean;
|
|
20
25
|
departureDate?: Date;
|
|
21
26
|
returnDate?: Date;
|
|
@@ -54,6 +54,11 @@ export interface Entry {
|
|
|
54
54
|
isManualDossierType: boolean;
|
|
55
55
|
dossierType: number;
|
|
56
56
|
optionDate?: Date;
|
|
57
|
+
cancellationReasonId?: number;
|
|
58
|
+
cancellationReasonName?: string;
|
|
59
|
+
cancellationRemark?: string;
|
|
60
|
+
cancelledByName?: string;
|
|
61
|
+
cancelledOn?: Date;
|
|
57
62
|
dateCreated: Date;
|
|
58
63
|
confirmedDossierChecks: ConfirmedDossierCheck[];
|
|
59
64
|
entryCheckResponse: EntryCheckResponse;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AvailabilitySearchType } from "../enums";
|
|
2
2
|
import { DateAmountType } from "../enums/date-amount-type";
|
|
3
3
|
import { PortalQsmType } from "../enums/portal-qsm-type";
|
|
4
|
+
import { TripBuilderView } from "../enums/trip-builder-view";
|
|
5
|
+
import { TripEditorType } from "../enums/trip-editor-type";
|
|
4
6
|
export interface WebsiteConfiguration {
|
|
5
7
|
styleSheetIds: number[];
|
|
6
8
|
searchConfigurations: WebsiteConfigurationSearchConfiguration[];
|
|
@@ -28,7 +30,8 @@ export interface WebsiteConfiguration {
|
|
|
28
30
|
showNonPreferredHotels: boolean;
|
|
29
31
|
allowBookedEntryChanges: boolean;
|
|
30
32
|
allowMultiCity: boolean;
|
|
31
|
-
|
|
33
|
+
tripEditor: TripEditorType;
|
|
34
|
+
tripBuilderView: TripBuilderView;
|
|
32
35
|
allowFullItinerary: boolean;
|
|
33
36
|
googleMapsApiKey: string | null;
|
|
34
37
|
}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
BasePrice,
|
|
8
8
|
BookableDates,
|
|
9
9
|
BookableDatesRequest,
|
|
10
|
+
BookingCancellationReason,
|
|
10
11
|
BookingPackage,
|
|
11
12
|
BookingPackageAvailability,
|
|
12
13
|
BookingPackageBookRequest,
|
|
@@ -153,13 +154,31 @@ export declare const setCustomEntryStatus: (
|
|
|
153
154
|
customEntryStatusId: number,
|
|
154
155
|
signal?: AbortSignal | undefined
|
|
155
156
|
) => Promise<BookingPackageAvailability[]>;
|
|
157
|
+
/**
|
|
158
|
+
* Moves a dossier to a status. When that cancels it, `cancellationReasonId` (from
|
|
159
|
+
* `getCancellationReasons`) says why, and `cancellationRemark` is the customer's own
|
|
160
|
+
* explanation (kept for the reason "Other"); without a reason Tide files it under "Other".
|
|
161
|
+
* The two cancellation arguments come last so existing calls keep compiling.
|
|
162
|
+
*/
|
|
156
163
|
export declare const setEntryStatus: (
|
|
157
164
|
config: TideClientConfig,
|
|
158
165
|
dossierNumber: string,
|
|
159
166
|
entryStatus: EntryStatus,
|
|
160
167
|
customEntryStatusId?: number | undefined,
|
|
161
|
-
signal?: AbortSignal | undefined
|
|
168
|
+
signal?: AbortSignal | undefined,
|
|
169
|
+
cancellationReasonId?: number | undefined,
|
|
170
|
+
cancellationRemark?: string | undefined
|
|
162
171
|
) => Promise<BookingPackageAvailability[]>;
|
|
172
|
+
/**
|
|
173
|
+
* The reasons a customer can give when cancelling a dossier in this status, named in
|
|
174
|
+
* `languageCode`. An option counts as a booking; without `entryStatus` Tide answers for a booking.
|
|
175
|
+
*/
|
|
176
|
+
export declare const getCancellationReasons: (
|
|
177
|
+
config: TideClientConfig,
|
|
178
|
+
entryStatus?: EntryStatus | undefined,
|
|
179
|
+
signal?: AbortSignal | undefined,
|
|
180
|
+
languageCode?: string | undefined
|
|
181
|
+
) => Promise<BookingCancellationReason[]>;
|
|
163
182
|
export declare const repriceAndIssueTicket: (
|
|
164
183
|
config: TideClientConfig,
|
|
165
184
|
request: RepriceAndIssueTicketRequest,
|