@qite/tide-client 2.0.21-preview.1 → 2.0.21

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,3 @@
1
+ export interface PriceListRequest {
2
+ dossierNumber: string;
3
+ }
@@ -1,5 +1,4 @@
1
1
  import { EntryStatus } from "../../../enums";
2
- import { BookingPackagePax, BookingPackagePaxFieldConfig } from "../../shared";
3
2
  export interface PackagingEntry {
4
3
  language?: string;
5
4
  transactionId: string;
@@ -10,7 +9,6 @@ export interface PackagingEntry {
10
9
  depositAmount: number;
11
10
  pax: PackagingEntryPax[];
12
11
  rooms: PackagingEntryRoom[];
13
- paxFields: BookingPackagePaxFieldConfig[];
14
12
  lines: PackagingEntryLine[];
15
13
  address: PackagingEntryAddress;
16
14
  status: EntryStatus;
@@ -19,7 +17,14 @@ export interface PackagingEntry {
19
17
  returnPaymentUrl?: boolean;
20
18
  remarks?: string;
21
19
  }
22
- export interface PackagingEntryPax extends BookingPackagePax {}
20
+ export interface PackagingEntryPax {
21
+ id: number;
22
+ lastName: string;
23
+ firstName: string;
24
+ dateOfBirth?: string | null;
25
+ age?: number | null;
26
+ isMainBooker: boolean;
27
+ }
23
28
  export interface PackagingEntryRoom {
24
29
  id: number;
25
30
  paxIds: number[];
@@ -7,4 +7,5 @@ export interface BookingPackageHotelOption {
7
7
  price: number;
8
8
  isSelected: boolean;
9
9
  roomIndex: number;
10
+ quantity: number;
10
11
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * @deprecated use `BookingPackagePaxFieldConfig` instead — kept for backward compatibility
3
- */
4
1
  export interface BookingPackagePaxCustomField {
5
2
  customFieldConfigurationId: number;
6
3
  fieldName: string;
@@ -1,4 +1,3 @@
1
- import { BookingPackageAddress } from "../request/booking-package-address";
2
1
  import { BookingPackageCustomField } from "./booking-package-custom-field";
3
2
  export interface BookingPackagePax {
4
3
  id: number;
@@ -8,7 +7,6 @@ export interface BookingPackagePax {
8
7
  countryOfBirthId?: number;
9
8
  firstName: string;
10
9
  lastName: string;
11
- nickname?: string;
12
10
  salutationId?: number;
13
11
  preferredLanguageId?: number;
14
12
  gender?: number;
@@ -17,24 +15,9 @@ export interface BookingPackagePax {
17
15
  email: string;
18
16
  phone?: string;
19
17
  mobilePhone?: string;
20
- emergencyNumber?: string;
21
18
  weight: number | null;
22
19
  weightType: number;
23
20
  height: number | null;
24
21
  heightType: number;
25
- birthplace?: string;
26
- nationality?: string;
27
- hasInsurance?: boolean;
28
- insuranceName?: string;
29
- info?: string;
30
- passportNumber?: string;
31
- passportIssueDate?: string;
32
- passportIssuedLocation?: string;
33
- passportExpiryDate?: string;
34
- /**
35
- * On the main booker, this is the booking's canonical address — the top-level
36
- * `address`/`travellerAddressName` request fields are ignored for them, so don't set both.
37
- */
38
- address?: BookingPackageAddress;
39
22
  customFields: BookingPackageCustomField[];
40
23
  }
@@ -2,18 +2,13 @@ import { BookingPackageFlightInfo } from "../response/booking-package-flight-inf
2
2
  import { BookingPackageFlight } from "./booking-package-flight";
3
3
  import { BookingPackageOption } from "./booking-package-option";
4
4
  import { BookingPackagePaxCustomField } from "./booking-package-pax-custom-field";
5
- import { BookingPackagePaxFieldConfig } from "./booking-package-pax-field-config";
6
5
  import { BookingPackageTag } from "./booking-package-tag";
7
6
  export interface BookingPackage {
8
7
  outwardFlights: BookingPackageFlight[];
9
8
  returnFlights: BookingPackageFlight[];
10
9
  options: BookingPackageOption[];
11
10
  tags: BookingPackageTag[];
12
- /**
13
- * @deprecated use `paxFields` instead — kept for backward compatibility
14
- */
15
11
  paxCustomFields: BookingPackagePaxCustomField[];
16
- paxFields: BookingPackagePaxFieldConfig[];
17
12
  flightInfo: BookingPackageFlightInfo;
18
13
  currencyCode: string;
19
14
  transactionId: string;
@@ -18,7 +18,6 @@ export * from "./booking-package-hotel-room";
18
18
  export * from "./booking-package-line";
19
19
  export * from "./booking-package-option";
20
20
  export * from "./booking-package-pax-custom-field";
21
- export * from "./booking-package-pax-field-config";
22
21
  export * from "./booking-package-pax";
23
22
  export * from "./booking-package-request-room";
24
23
  export * from "./booking-package-room";
@@ -5,5 +5,3 @@ export declare const CustomFieldDataType: {
5
5
  string: number;
6
6
  numeric: number;
7
7
  };
8
- export declare type CustomFieldDataType =
9
- typeof CustomFieldDataType[keyof typeof CustomFieldDataType];
@@ -13,7 +13,6 @@ export interface WebsiteConfiguration {
13
13
  hideShowMoreResults: boolean;
14
14
  loadDayActivitiesOnDemand: boolean;
15
15
  showNonPreferredHotels: boolean;
16
- allowBookedEntryChanges: boolean;
17
16
  }
18
17
  export interface WebsiteConfigurationSearchConfiguration {
19
18
  id: number;
@@ -37,11 +37,6 @@ export declare const getEntry: (
37
37
  magicLinkCode: string,
38
38
  signal?: AbortSignal | undefined
39
39
  ) => Promise<PackagingEntry>;
40
- export declare const savePackagingEntry: (
41
- config: TideClientConfig,
42
- request: PackagingRequestBase<PackagingEntry>,
43
- signal?: AbortSignal | undefined
44
- ) => Promise<PackagingEntry>;
45
40
  export declare const getTrajectEntry: (
46
41
  config: TideClientConfig,
47
42
  request: PackagingTrajectRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "2.0.21-preview.1",
3
+ "version": "2.0.21",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -1,9 +0,0 @@
1
- import { CustomFieldDataType } from "../../enums/custom-field-data-type";
2
- export interface BookingPackagePaxFieldConfig {
3
- customFieldConfigurationId?: number | null;
4
- fieldName: string;
5
- dataType?: CustomFieldDataType | null;
6
- isRequired: boolean;
7
- col: number;
8
- group: string;
9
- }