@qite/tide-client 2.0.19 → 2.0.21-preview.0

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.
@@ -1,4 +1,5 @@
1
1
  import { EntryStatus } from "../../../enums";
2
+ import { BookingPackagePax, BookingPackagePaxFieldConfig } from "../../shared";
2
3
  export interface PackagingEntry {
3
4
  language?: string;
4
5
  transactionId: string;
@@ -9,6 +10,7 @@ export interface PackagingEntry {
9
10
  depositAmount: number;
10
11
  pax: PackagingEntryPax[];
11
12
  rooms: PackagingEntryRoom[];
13
+ paxFields: BookingPackagePaxFieldConfig[];
12
14
  lines: PackagingEntryLine[];
13
15
  address: PackagingEntryAddress;
14
16
  status: EntryStatus;
@@ -17,14 +19,7 @@ export interface PackagingEntry {
17
19
  returnPaymentUrl?: boolean;
18
20
  remarks?: string;
19
21
  }
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
- }
22
+ export interface PackagingEntryPax extends BookingPackagePax {}
28
23
  export interface PackagingEntryRoom {
29
24
  id: number;
30
25
  paxIds: number[];
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated use `BookingPackagePaxFieldConfig` instead — kept for backward compatibility
3
+ */
1
4
  export interface BookingPackagePaxCustomField {
2
5
  customFieldConfigurationId: number;
3
6
  fieldName: string;
@@ -0,0 +1,9 @@
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
+ }
@@ -1,3 +1,4 @@
1
+ import { BookingPackageAddress } from "../request/booking-package-address";
1
2
  import { BookingPackageCustomField } from "./booking-package-custom-field";
2
3
  export interface BookingPackagePax {
3
4
  id: number;
@@ -7,6 +8,7 @@ export interface BookingPackagePax {
7
8
  countryOfBirthId?: number;
8
9
  firstName: string;
9
10
  lastName: string;
11
+ nickname?: string;
10
12
  salutationId?: number;
11
13
  preferredLanguageId?: number;
12
14
  gender?: number;
@@ -15,9 +17,24 @@ export interface BookingPackagePax {
15
17
  email: string;
16
18
  phone?: string;
17
19
  mobilePhone?: string;
20
+ emergencyNumber?: string;
18
21
  weight: number | null;
19
22
  weightType: number;
20
23
  height: number | null;
21
24
  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;
22
39
  customFields: BookingPackageCustomField[];
23
40
  }
@@ -2,13 +2,18 @@ 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";
5
6
  import { BookingPackageTag } from "./booking-package-tag";
6
7
  export interface BookingPackage {
7
8
  outwardFlights: BookingPackageFlight[];
8
9
  returnFlights: BookingPackageFlight[];
9
10
  options: BookingPackageOption[];
10
11
  tags: BookingPackageTag[];
12
+ /**
13
+ * @deprecated use `paxFields` instead — kept for backward compatibility
14
+ */
11
15
  paxCustomFields: BookingPackagePaxCustomField[];
16
+ paxFields: BookingPackagePaxFieldConfig[];
12
17
  flightInfo: BookingPackageFlightInfo;
13
18
  currencyCode: string;
14
19
  transactionId: string;
@@ -18,6 +18,7 @@ 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";
21
22
  export * from "./booking-package-pax";
22
23
  export * from "./booking-package-request-room";
23
24
  export * from "./booking-package-room";
@@ -5,3 +5,5 @@ 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];
@@ -1,5 +1,4 @@
1
- export interface ContentByParentRequest {
2
- channelId?: number | null;
3
- languageId?: number | null;
1
+ import { ContentFilterRequest } from "./content-filter-request";
2
+ export interface ContentByParentRequest extends ContentFilterRequest {
4
3
  parentId: number;
5
4
  }
@@ -1,6 +1,5 @@
1
- export interface ContentByPropertyRequest {
2
- channelId?: number | null;
3
- languageId?: number | null;
1
+ import { ContentFilterRequest } from "./content-filter-request";
2
+ export interface ContentByPropertyRequest extends ContentFilterRequest {
4
3
  includeChildren: boolean;
5
4
  propertyName: string;
6
5
  /** Match a single value (e.g. one product code). For batch retrieval, use propertyValues. */
@@ -1,6 +1,5 @@
1
- export interface ContentByTemplateRequest {
2
- channelId?: number | null;
3
- languageId?: number | null;
1
+ import { ContentFilterRequest } from "./content-filter-request";
2
+ export interface ContentByTemplateRequest extends ContentFilterRequest {
4
3
  includeChildren: boolean;
5
4
  templateId: number;
6
5
  }
@@ -0,0 +1,4 @@
1
+ export interface ContentFilterRequest {
2
+ channelId?: number | null;
3
+ languageId?: number | null;
4
+ }
@@ -1,25 +1,26 @@
1
1
  export * from "./affiliate";
2
- export * from "./agent-allotment-item";
3
2
  export * from "./agent-allotment";
4
- export * from "./agent-dossier-allotment-item";
3
+ export * from "./agent-allotment-item";
4
+ export * from "./agent-dossier";
5
5
  export * from "./agent-dossier-allotment";
6
+ export * from "./agent-dossier-allotment-item";
6
7
  export * from "./agent-dossier-entry-line";
7
- export * from "./agent-dossier-flight-meta-data-line";
8
8
  export * from "./agent-dossier-flight-meta-data";
9
+ export * from "./agent-dossier-flight-meta-data-line";
9
10
  export * from "./agent-dossier-item";
10
11
  export * from "./agent-dossier-traveler";
11
- export * from "./agent-dossier";
12
+ export * from "./airport";
12
13
  export * from "./contact-form-request";
14
+ export * from "./content-by-parent-request";
15
+ export * from "./content-by-property-request";
16
+ export * from "./content-by-template-request";
17
+ export * from "./content-filter-request";
13
18
  export * from "./generate-booking-accommodation-request";
14
19
  export * from "./locations-request";
15
- export * from "./tide-location";
16
20
  export * from "./portal";
17
- export * from "./airport";
18
- export * from "./website-configuration";
19
21
  export * from "./style-sheet";
20
- export * from "./web-form";
21
- export * from "./content-by-property-request";
22
- export * from "./content-by-template-request";
23
- export * from "./content-by-parent-request";
22
+ export * from "./tide-location";
24
23
  export * from "./web-contact";
24
+ export * from "./web-form";
25
25
  export * from "./web-opportunity-request";
26
+ export * from "./website-configuration";
@@ -13,6 +13,7 @@ export interface WebsiteConfiguration {
13
13
  hideShowMoreResults: boolean;
14
14
  loadDayActivitiesOnDemand: boolean;
15
15
  showNonPreferredHotels: boolean;
16
+ allowBookedEntryChanges: boolean;
16
17
  }
17
18
  export interface WebsiteConfigurationSearchConfiguration {
18
19
  id: number;
@@ -2,6 +2,7 @@ import {
2
2
  ContentByParentRequest,
3
3
  ContentByPropertyRequest,
4
4
  ContentByTemplateRequest,
5
+ ContentFilterRequest,
5
6
  PublishedContent,
6
7
  TideClientConfig,
7
8
  } from "../types";
@@ -27,6 +28,32 @@ export declare const getContentDraft: (
27
28
  config: TideClientConfig,
28
29
  signal?: AbortSignal | undefined
29
30
  ) => Promise<PublishedContent>;
31
+ /**
32
+ * api/web/content/live/filtered
33
+ * Gets filtered Live content
34
+ * @param config
35
+ * @param request
36
+ * @param signal
37
+ * @returns OK if succeeded.
38
+ */
39
+ export declare const getFilteredContentLive: (
40
+ config: TideClientConfig,
41
+ request: ContentFilterRequest,
42
+ signal?: AbortSignal | undefined
43
+ ) => Promise<PublishedContent>;
44
+ /**
45
+ * api/web/content/draft/filtered
46
+ * Gets filtered Draft (Internal) content
47
+ * @param config
48
+ * @param request
49
+ * @param signal
50
+ * @returns OK if succeeded.
51
+ */
52
+ export declare const getFilteredContentDraft: (
53
+ config: TideClientConfig,
54
+ request: ContentFilterRequest,
55
+ signal?: AbortSignal | undefined
56
+ ) => Promise<PublishedContent>;
30
57
  /**
31
58
  * api/web/content/live/by-property
32
59
  * Gets Live content matching a property value (or values).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-client",
3
- "version": "2.0.19",
3
+ "version": "2.0.21-preview.0",
4
4
  "description": "Frontend client for Tide",
5
5
  "main": "build/index.js",
6
6
  "scripts": {