@qite/tide-booking-component 1.0.0 → 1.0.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.
Files changed (23) hide show
  1. package/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +3 -13
  2. package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +13 -19
  3. package/build/build-cjs/booking-wizard/features/product-options/option-pax-card.d.ts +5 -1
  4. package/build/build-cjs/booking-wizard/features/product-options/option-room.d.ts +2 -0
  5. package/build/build-cjs/booking-wizard/types.d.ts +8 -7
  6. package/build/build-cjs/index.js +134 -289
  7. package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +3 -13
  8. package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +13 -19
  9. package/build/build-esm/booking-wizard/features/product-options/option-pax-card.d.ts +5 -1
  10. package/build/build-esm/booking-wizard/features/product-options/option-room.d.ts +2 -0
  11. package/build/build-esm/booking-wizard/types.d.ts +8 -7
  12. package/build/build-esm/index.js +134 -289
  13. package/package.json +71 -71
  14. package/src/booking-wizard/components/step-indicator.tsx +1 -1
  15. package/src/booking-wizard/features/booking/booking.tsx +7 -6
  16. package/src/booking-wizard/features/booking/selectors.ts +9 -3
  17. package/src/booking-wizard/features/product-options/option-pax-card.tsx +18 -3
  18. package/src/booking-wizard/features/product-options/option-room.tsx +13 -1
  19. package/src/booking-wizard/features/product-options/options-form.tsx +10 -6
  20. package/src/booking-wizard/features/travelers-form/travelers-form.tsx +3 -3
  21. package/src/booking-wizard/features/travelers-form/validate-form.ts +1 -1
  22. package/src/booking-wizard/settings-context.ts +7 -4
  23. package/src/booking-wizard/types.ts +3 -0
@@ -14,8 +14,6 @@ import {
14
14
  } from "@qite/tide-client/build/types";
15
15
  export interface BookingState {
16
16
  officeId: number;
17
- entryStatus: number;
18
- customEntryStatusId?: number;
19
17
  productAttributes?: ProductAttributes;
20
18
  bookingAttributes?: BookingAttributes;
21
19
  calculateDeposit: boolean;
@@ -31,7 +29,7 @@ export interface BookingState {
31
29
  agentAdressId?: number;
32
30
  remarks?: string;
33
31
  voucherCodes?: string[];
34
- bookingOptions?: BookingOptions;
32
+ bookingOptions: BookingOptions;
35
33
  bookingType: string;
36
34
  }
37
35
  export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<
@@ -43,16 +41,8 @@ export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPa
43
41
  number,
44
42
  string
45
43
  >,
46
- setEntryStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<
47
- number,
48
- string
49
- >,
50
- setCustomEntryStatusId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
51
- number | undefined,
52
- string
53
- >,
54
- setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
55
- BookingOptions | undefined,
44
+ setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<
45
+ BookingOptions,
56
46
  string
57
47
  >,
58
48
  setBookingType: import("@reduxjs/toolkit").ActionCreatorWithPayload<
@@ -63,13 +63,9 @@ export declare const selectRequestRooms: (
63
63
  | import("@qite/tide-client/build/types/offer").BookingPackageRequestRoom[]
64
64
  | undefined;
65
65
  export declare const selectOfficeId: (state: RootState) => number;
66
- export declare const selectEntryStatus: (state: RootState) => number;
67
- export declare const selectCustomEntryStatusId: (
68
- state: RootState
69
- ) => number | undefined;
70
66
  export declare const selectBookingOptions: (
71
67
  state: RootState
72
- ) => import("../../types").BookingOptions | undefined;
68
+ ) => import("../../types").BookingOptions;
73
69
  export declare const selectBookingType: (state: RootState) => string;
74
70
  export declare const selectTagIds: (state: RootState) => number[] | undefined;
75
71
  export declare const selectAgentAdressId: (
@@ -189,23 +185,21 @@ export declare const selectBookingPackageBookRequest: ((state: {
189
185
  import("reselect").OutputSelectorFields<
190
186
  (
191
187
  args_0: BookingPackageRequest<any>,
192
- args_1: number,
193
- args_2: number | undefined,
194
- args_3: import("../../types").BookingOptions | undefined,
195
- args_4: string,
196
- args_5: BookingPackagePax[],
197
- args_6: BookingPackageAddress | undefined,
198
- args_7:
188
+ args_1: import("../../types").BookingOptions,
189
+ args_2: string,
190
+ args_3: BookingPackagePax[],
191
+ args_4: BookingPackageAddress | undefined,
192
+ args_5:
199
193
  | import("@qite/tide-client/build/types/offer").BookingPackage
200
194
  | undefined,
195
+ args_6: boolean,
196
+ args_7: number | undefined,
201
197
  args_8: boolean,
202
- args_9: number | undefined,
203
- args_10: boolean,
204
- args_11: boolean,
205
- args_12: import("@qite/tide-client/build/types/offer").BookingProductNotification[],
206
- args_13: number[] | undefined,
207
- args_14: string | undefined,
208
- args_15: string[] | undefined
198
+ args_9: boolean,
199
+ args_10: import("@qite/tide-client/build/types/offer").BookingProductNotification[],
200
+ args_11: number[] | undefined,
201
+ args_12: string | undefined,
202
+ args_13: string[] | undefined
209
203
  ) => BookingPackageRequest<BookingPackageBookRequest> & {
210
204
  clearCache: () => void;
211
205
  }
@@ -1,7 +1,11 @@
1
- import { BookingOptionPax } from "@qite/tide-client/build/types";
1
+ import {
2
+ BookingOptionPax,
3
+ BookingPackagePax,
4
+ } from "@qite/tide-client/build/types";
2
5
  import React from "react";
3
6
  interface OptionPaxCardProps {
4
7
  pax: BookingOptionPax[];
8
+ requestRoomsPax?: BookingPackagePax[];
5
9
  parentIndex?: number;
6
10
  onPaxChange?: (pax: BookingOptionPax[], index?: number) => void;
7
11
  }
@@ -1,4 +1,5 @@
1
1
  import {
2
+ BookingOptionPax,
2
3
  BookingPackagePax,
3
4
  BookingPackageRoom,
4
5
  } from "@qite/tide-client/build/types";
@@ -6,6 +7,7 @@ import React from "react";
6
7
  interface OptionRoomProps {
7
8
  packageRoom: BookingPackageRoom;
8
9
  pax: BookingPackagePax[];
10
+ optionPax?: BookingOptionPax[];
9
11
  onRoomChange: (
10
12
  index: number,
11
13
  accommodationCode: string,
@@ -1,13 +1,14 @@
1
1
  export interface Settings {
2
2
  officeId: number;
3
- entryStatus: number;
4
- customEntryStatusId?: number | null;
5
3
  bookingOptions: BookingOptions;
6
4
  productPath: string;
7
5
  basePath: string;
8
6
  options: {
9
7
  pathSuffix: string;
10
8
  };
9
+ travellers: {
10
+ pathSuffix: string;
11
+ };
11
12
  summary: {
12
13
  pathSuffix: string;
13
14
  checkboxes?: SummaryCheckbox[] | null;
@@ -39,13 +40,13 @@ export interface Settings {
39
40
  enableVoucher?: boolean;
40
41
  }
41
42
  export interface BookingOptions {
42
- b2b?: BookingOptionsDetail;
43
- b2b2c?: BookingOptionsDetail;
44
- b2c?: BookingOptionsDetail;
43
+ b2b: BookingOptionsDetail;
44
+ b2b2c: BookingOptionsDetail;
45
+ b2c: BookingOptionsDetail;
45
46
  }
46
47
  export interface BookingOptionsDetail {
47
- entryStatus?: number;
48
- customEntryStatusId?: number | null;
48
+ entryStatus: number;
49
+ customEntryStatusId?: number;
49
50
  tagIds?: number[];
50
51
  }
51
52
  export interface SummaryCheckbox {