@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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A reason a website can offer when a customer cancels, named in the language of
3
+ * the request. `isDefault` marks the one to preselect.
4
+ */
5
+ export interface BookingCancellationReason {
6
+ id: number;
7
+ name: string;
8
+ isDefault: boolean;
9
+ }
@@ -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";
@@ -3,6 +3,7 @@ export interface PackagingAccommodationResponse extends PackagingBaseResponse {
3
3
  rooms: PackageMainRoom[];
4
4
  contents: string;
5
5
  stars?: number;
6
+ imageUrl?: string | null;
6
7
  isPlaceholder: boolean;
7
8
  }
8
9
  export interface PackageMainRoom {
@@ -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";
@@ -0,0 +1,4 @@
1
+ export declare enum TripBuilderView {
2
+ Detailed = 0,
3
+ Compact = 1,
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum TripEditorType {
2
+ None = 0,
3
+ TripOverview = 1,
4
+ TripBuilder = 2,
5
+ }
@@ -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
- allowTrajectBuilder: boolean;
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "26.6.0-preview.0",
3
+ "version": "26.6.0-preview.2",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "bin": {