@roomstay/core 0.1.54 → 0.1.56-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.
Files changed (67) hide show
  1. package/dist/components/DateRangePicker/DateRangePicker.d.ts +16 -0
  2. package/dist/components/DateRangePicker/DateRangePicker.type.d.ts +16 -0
  3. package/dist/components/DateRangePicker/DateRangePickerContext.d.ts +16 -0
  4. package/dist/components/DateRangePicker/DateRangePickerDay.d.ts +22 -0
  5. package/dist/components/DateRangePicker/DateRangePickerDays.d.ts +7 -0
  6. package/dist/components/DateRangePicker/DateRangePickerMonth.d.ts +9 -0
  7. package/dist/components/DateRangePicker/FloatingDateRangePicker.d.ts +26 -0
  8. package/dist/components/DateRangePicker/index.d.ts +3 -0
  9. package/dist/components/Icon/Icon.d.ts +19 -0
  10. package/dist/components/Icon/index.d.ts +1 -0
  11. package/dist/components/Overlay/Overlay.d.ts +21 -0
  12. package/dist/components/Overlay/index.d.ts +1 -0
  13. package/dist/components/RoomstayPortal/RoomstayPortal.d.ts +8 -0
  14. package/dist/components/RoomstayPortal/index.d.ts +1 -0
  15. package/dist/components/Text/Text.d.ts +18 -0
  16. package/dist/components/Text/Text.type.d.ts +14 -0
  17. package/dist/components/Text/index.d.ts +2 -0
  18. package/dist/components/animations/AutoAutoHeight.d.ts +9 -0
  19. package/dist/components/animations/Fade.d.ts +13 -0
  20. package/dist/components/animations/index.d.ts +1 -0
  21. package/dist/components/index.d.ts +6 -0
  22. package/dist/hooks/BodyClickHook.d.ts +8 -0
  23. package/dist/index.node.d.ts +2 -0
  24. package/dist/index.web.d.ts +3 -0
  25. package/dist/node.js +1 -1
  26. package/dist/node.js.map +1 -0
  27. package/dist/roomstay-core-0.1.26.tgz +0 -0
  28. package/dist/stories/DateRangePicker.stories.d.ts +8 -0
  29. package/dist/stories/FloatingDateRangePicker.stories.d.ts +5 -0
  30. package/dist/types/Addon/Addon.d.ts +38 -0
  31. package/dist/types/Addons/Addon.enum.d.ts +2 -0
  32. package/dist/types/Addons/Addon.types.d.ts +24 -0
  33. package/dist/types/Api/Reservations.type.d.ts +4 -3
  34. package/dist/types/Api/ReservationsDTO.d.ts +102 -0
  35. package/dist/types/Api/RoomNightRateDTO.d.ts +7 -0
  36. package/dist/types/Availability/Availability.types.d.ts +99 -0
  37. package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +11 -0
  38. package/dist/types/Booking/IBookingPayment.type.d.ts +1 -1
  39. package/dist/types/Booking/IBookingStatus.type.d.ts +5 -0
  40. package/dist/types/Booking/IPrice.type.d.ts +7 -0
  41. package/dist/types/Company/ECompanyProvider.enum.d.ts +2 -1
  42. package/dist/types/Company/IAdminCompany.type.d.ts +5 -0
  43. package/dist/types/Fees/IFee.type.d.ts +6 -1
  44. package/dist/types/General/Warning.type.d.ts +14 -0
  45. package/dist/types/Hotel/EIntegration.enum.d.ts +2 -1
  46. package/dist/types/Hotel/IHotel.enum.d.ts +32 -0
  47. package/dist/types/Hotel/IHotel.type.d.ts +275 -0
  48. package/dist/types/Hotel/IntegrationConfigs.type.d.ts +76 -0
  49. package/dist/types/Hotel/InternalMemberSignInModal.type.d.ts +13 -0
  50. package/dist/types/Hotel/InternalMemberSignInModal.types.d.ts +13 -0
  51. package/dist/types/OHIP/IOHIPConfiguration.types.d.ts +9 -0
  52. package/dist/types/OHIP/index.d.ts +1 -0
  53. package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +6 -0
  54. package/dist/types/Room/HotelRoom.type.d.ts +24 -0
  55. package/dist/types/Room/SynxisRoom.type.d.ts +35 -0
  56. package/dist/types/index.d.ts +34 -5
  57. package/dist/utils/CalendarHelper.d.ts +16 -0
  58. package/dist/utils/TotalCalculator.d.ts +2 -1
  59. package/dist/utils/color.d.ts +17 -0
  60. package/dist/utils/index.d.ts +6 -4
  61. package/dist/utils/index.node.d.ts +2 -0
  62. package/dist/utils/index.web.d.ts +4 -0
  63. package/dist/utils/roundMoney.d.ts +11 -1
  64. package/dist/utils/zodUtils.d.ts +1 -1
  65. package/dist/web.js +1 -1
  66. package/dist/web.js.map +1 -0
  67. package/package.json +8 -2
@@ -0,0 +1,102 @@
1
+ import { EBookingPaymentMethod } from "types/Booking/IBookingPayment.type";
2
+ import { SimpleItemisedFee } from "types/Fees/IFee.type";
3
+ import { RoomNightRateDTO } from "./RoomNightRateDTO";
4
+ export type ReservationsDTO = {
5
+ roomstayId: string;
6
+ reservations: ReservationDTO[];
7
+ itineraryNumber: string;
8
+ hotelFrontendId?: string;
9
+ warnings?: string[];
10
+ total?: string;
11
+ payment?: {
12
+ planpay?: {
13
+ id: string;
14
+ checkoutWorkflow: {
15
+ type: string;
16
+ id: string;
17
+ scriptUrl: string;
18
+ };
19
+ };
20
+ external?: {
21
+ id: string;
22
+ redirectUrl: string;
23
+ };
24
+ adyen?: {
25
+ roomstayId: string;
26
+ sessionData: string;
27
+ sessionId: string;
28
+ clientKey: string;
29
+ isLive: boolean;
30
+ currency: string;
31
+ amount: string;
32
+ countryCode: string;
33
+ };
34
+ };
35
+ itemisedFees?: SimpleItemisedFee[];
36
+ feesSummary?: SimpleItemisedFee[];
37
+ };
38
+ export type ReservationAddonDTO = {
39
+ code: string;
40
+ inclusive: false;
41
+ pricingType: string;
42
+ quantity: number;
43
+ adultQuantity: number;
44
+ childQuantity?: number;
45
+ description: string;
46
+ name: string;
47
+ category: string;
48
+ image: string;
49
+ price: number;
50
+ fees?: number;
51
+ itemisedFees?: SimpleItemisedFee[];
52
+ displayPrice: number;
53
+ adultPrice?: number;
54
+ childPrice?: number;
55
+ nights?: number;
56
+ };
57
+ export type ReservationDTO = {
58
+ nights: {
59
+ [date: string]: RoomNightRateDTO;
60
+ };
61
+ guestCounts: {
62
+ adults: number;
63
+ children: number;
64
+ };
65
+ guest: {
66
+ address: {
67
+ line1: string;
68
+ city: string;
69
+ postalCode: string;
70
+ };
71
+ firstName: string;
72
+ lastName: string;
73
+ phone: string;
74
+ email: string;
75
+ };
76
+ paymentCard: {
77
+ type?: string;
78
+ last4: string;
79
+ expiry: string;
80
+ name: string;
81
+ };
82
+ paymentMethod?: EBookingPaymentMethod;
83
+ comments?: string[];
84
+ addons?: ReservationAddonDTO[];
85
+ itemisedFees?: SimpleItemisedFee[];
86
+ reservationNumber: string;
87
+ cancelPolicy: string;
88
+ cancellationPolicyLongDescription?: string;
89
+ guaranteePolicy: string;
90
+ guaranteePolicyLongDescription?: string;
91
+ roomType: string;
92
+ roomCode: string;
93
+ rate: string;
94
+ images: [string];
95
+ status: string;
96
+ isCancelable: boolean;
97
+ total: {
98
+ beforeTax: number;
99
+ afterTax: number;
100
+ beforeFees?: number;
101
+ };
102
+ };
@@ -0,0 +1,7 @@
1
+ export type RoomNightRateDTO = {
2
+ cost: string;
3
+ tax: string;
4
+ fee: string;
5
+ total: string;
6
+ discount: string;
7
+ };
@@ -0,0 +1,99 @@
1
+ import { EGuaranteePolicyDepositMode } from '../Policies/EGuaranteePolicy.enum';
2
+ import { IItemisedBookingFeeResponse } from '../Booking/Itinerary.types';
3
+ import { Warning } from "../General/Warning.type";
4
+ export type IAvailability = {
5
+ roomTypes: {
6
+ [roomTypeCode: string]: IRoomType;
7
+ };
8
+ ratePlans: {
9
+ [ratePlanCode: string]: IRatePlan;
10
+ };
11
+ roomNights: {
12
+ [date: string]: {
13
+ [roomTypeCode: string]: IRoomNight;
14
+ };
15
+ };
16
+ guaranteePolicies: {
17
+ [policyCode: string]: IAvailabilityGuaranteePolicyDetails;
18
+ };
19
+ cancelPolicies: {
20
+ [policyCode: string]: string;
21
+ };
22
+ warnings: Warning<string>[];
23
+ alternativeAvailability?: IAlternativeAvailability;
24
+ };
25
+ export type IAlternativeAvailability = {
26
+ checkInDate: string;
27
+ checkOutDate: string;
28
+ availability: IAvailability;
29
+ };
30
+ export type IAvailabilityGuaranteePolicyDetails = {
31
+ code: string;
32
+ name: string;
33
+ longDescription: string;
34
+ depositMode: EGuaranteePolicyDepositMode;
35
+ depositPercentage?: number;
36
+ hide: boolean;
37
+ };
38
+ export type IRoomType = {
39
+ name: string;
40
+ shortDescription: string;
41
+ longDescription: string;
42
+ imageUrls: string[];
43
+ occupancy: number;
44
+ roomGroupId?: string | null;
45
+ auxiliaryValues?: {
46
+ [auxiliaryFilterId: string]: string[];
47
+ };
48
+ order: number;
49
+ };
50
+ export type IRatePlan = {
51
+ name: string;
52
+ description: string;
53
+ longDescription?: string | null;
54
+ guaranteeCode: string;
55
+ cancelPolicyCode: string;
56
+ promoCode?: string | null;
57
+ promoCodeName?: string | null;
58
+ mealsIncluded: {
59
+ breakfast: boolean;
60
+ lunch: boolean;
61
+ dinner: boolean;
62
+ mealPlan: string | undefined;
63
+ };
64
+ rateOverrides: IRateOverride[];
65
+ };
66
+ export type IRoomNight = {
67
+ available: number;
68
+ lowestPrice: number;
69
+ rates: {
70
+ [ratePlanCode: string]: IRoomNightRatePlan;
71
+ };
72
+ };
73
+ export type IRoomNightRatePlan = {
74
+ cost: number;
75
+ discount: number;
76
+ tax: number;
77
+ fee: number;
78
+ total: number;
79
+ fees?: IItemisedBookingFeeResponse[];
80
+ };
81
+ export type IRateOverride = {
82
+ name: string;
83
+ shortDescription: string;
84
+ longDescription: string;
85
+ enabledPerDay: IRateLabelsByDay | null;
86
+ startDate: string;
87
+ endDate: string | null;
88
+ queryStartDate: string | null;
89
+ queryEndDate: string | null;
90
+ };
91
+ export type IRateLabelsByDay = {
92
+ Monday: boolean;
93
+ Tuesday: boolean;
94
+ Wednesday: boolean;
95
+ Thursday: boolean;
96
+ Friday: boolean;
97
+ Saturday: boolean;
98
+ Sunday: boolean;
99
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This is the response body that comes down if a booking fails anywhere in the booking flow.
3
+ *
4
+ * Object will contain a public message only, with partial reservation data to be able to attempt to "resume" the booking
5
+ */
6
+ export type IBookingCreateErrorResponse = {
7
+ canRetryPayment: boolean;
8
+ isPaymentTaken: boolean;
9
+ publicMessage: string;
10
+ roomstayId: string;
11
+ };
@@ -22,7 +22,7 @@ export declare enum EHotelCardProcessor {
22
22
  Mastercard = "Mastercard"
23
23
  }
24
24
  export declare enum EPlanpayBookingStatus {
25
- Unknown = "unknown",
25
+ Unknown = "unknown",// incase plan.deposit.status is unavailable
26
26
  Unpaid = "unpaid",
27
27
  Accepted = "accepted",
28
28
  Cancelled = "cancelled",
@@ -0,0 +1,5 @@
1
+ export declare enum IBookingStatus {
2
+ Pending = "Pending",
3
+ Committed = "Committed",
4
+ Cancelled = "Cancelled"
5
+ }
@@ -0,0 +1,7 @@
1
+ export type IPrice = {
2
+ cost: number;
3
+ discount: number;
4
+ tax: number;
5
+ fee: number;
6
+ total: number;
7
+ };
@@ -3,5 +3,6 @@ export declare enum ECompanyProvider {
3
3
  Availpro = "Availpro",
4
4
  RMS = "RMS",
5
5
  Siteminder = "Siteminder",
6
- Roomstay = "Roomstay"
6
+ Roomstay = "Roomstay",
7
+ OHIP = "OHIP"
7
8
  }
@@ -8,7 +8,12 @@ export interface IAdminCompany {
8
8
  providerLogin: string;
9
9
  providerPassword: string;
10
10
  isGiftCardsEnabled: boolean;
11
+ /**
12
+ * @deprecated Use `isRoomstayEventsEnabled` or `isHotelEventsEnabled` instead.
13
+ */
11
14
  isEventsEnabled: boolean;
15
+ isRoomstayEventsEnabled: boolean;
16
+ isHotelEventsEnabled: boolean;
12
17
  isAnalyticsEnabled: boolean;
13
18
  preventMemberPortalWelcomeEmails: boolean;
14
19
  hotels: {
@@ -1,6 +1,11 @@
1
- import { EFeeType } from "./EFeeType.enum";
1
+ import { EFeeType } from './EFeeType.enum';
2
2
  export interface IFee {
3
3
  name: string;
4
4
  amount: number;
5
5
  feeType: EFeeType;
6
6
  }
7
+ export type SimpleItemisedFee = {
8
+ name: string;
9
+ description?: string;
10
+ amount: number;
11
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * A standard warning object with a type, message and extra data
3
+ * @example
4
+ * const warn: Warning<{ field: string; issue: string }> = {
5
+ * type: 'VALIDATION_WARNING',
6
+ * data: { field: 'email', issue: 'invalid_format' },
7
+ * message: 'Email address is not properly formatted.',
8
+ * };
9
+ */
10
+ export type Warning<TData = unknown> = {
11
+ type: string;
12
+ data: TData;
13
+ message: string;
14
+ };
@@ -3,5 +3,6 @@ export declare enum EIntegration {
3
3
  RmsTop10 = "Top10",
4
4
  Top10 = "NewTop10",
5
5
  Gday = "Gday",
6
- Salesforce = "Salesforce"
6
+ Salesforce = "Salesforce",
7
+ RAC = "RAC"
7
8
  }
@@ -0,0 +1,32 @@
1
+ export declare enum EPaymentCardType {
2
+ Visa = "VI",
3
+ Mastercard = "MC",
4
+ JCB = "JC",
5
+ AmericanExpress = "AX",
6
+ DinersClub = "DN",
7
+ UnionPay = "UP"
8
+ }
9
+ export declare enum HotelDataSource {
10
+ Synxis = "Synxis",
11
+ Roomstay = "Roomstay"
12
+ }
13
+ export declare enum PlanPayEnvStage {
14
+ Sandbox = "sbx",
15
+ Staging = "stag",
16
+ Production = "prod"
17
+ }
18
+ export declare enum DatepickerType {
19
+ Month = "Month",
20
+ Week = "Week"
21
+ }
22
+ export declare enum EHotelAvailabilityType {
23
+ PerRoomType = "PerRoom",
24
+ PerUnit = "PerUnit",
25
+ /** @deprecated In place while we move RMS Clients from Channel availability to Rest */
26
+ PerRoomOld = "PerRoomOld"
27
+ }
28
+ export declare enum EHotelMinPriceStrategy {
29
+ SingleDayAvailability = "SingleDayAvailability",
30
+ TwoDayMaxAvailability = "TwoDayMaxAvailability",
31
+ IncludeAllAvailability = "AllAvailability"
32
+ }
@@ -0,0 +1,275 @@
1
+ import { EBookingPaymentMethod, EHotelCardProcessor } from "../Booking/IBookingPayment.type";
2
+ import { MediaType } from "../Media/IMedia.type";
3
+ import { HotelRoomType } from "../Room/HotelRoom.type";
4
+ import { HotelRoomGroupsType } from "../Room/IRoomGroup.type";
5
+ import { EHotelPriceModel } from "./EHotelPriceModel.enum";
6
+ import { EHotelStateFieldConfiguration } from "./EHotelStateFieldConfiguration.enum";
7
+ import { EHotelWeekdayStartsOn } from "./EHotelWeekdayStartsOn.enum";
8
+ import { EIntegration } from "./EIntegration.enum";
9
+ import { DatepickerType, EPaymentCardType, HotelDataSource } from "./IHotel.enum";
10
+ import { IHotelColorScheme } from "./IHotelColorScheme.type";
11
+ import { EDistanceUnitType, IHotelOverrides } from "./IHotelOverrides.type";
12
+ import { IHotelService } from "./IHotelService.type";
13
+ import { ActiveCampaignConfigs, Big4Configs, GdayConfigs, PlanPayConfigs, PlanpayConfigs, TillPaymentsConfigs } from "./IntegrationConfigs.type";
14
+ import { InternalMemberSignInInputs } from "./InternalMemberSignInModal.type";
15
+ export interface IVGSVaultNames {
16
+ standard: string;
17
+ members: string;
18
+ }
19
+ export interface IChildConfiguration {
20
+ supportChildren: boolean;
21
+ supportInfants: boolean;
22
+ childRange: {
23
+ min: number;
24
+ max: number;
25
+ };
26
+ infantRange: {
27
+ min: number;
28
+ max: number;
29
+ };
30
+ }
31
+ export type AddressType = {
32
+ line1: string;
33
+ line2?: string;
34
+ line3?: string;
35
+ city: string;
36
+ postalCode: string;
37
+ state: string;
38
+ country: string;
39
+ };
40
+ export type DealDisplayStrategyType = {
41
+ includePromotionalRates?: boolean;
42
+ includeMemberDeals?: boolean;
43
+ };
44
+ export type FrontendPerkType = {
45
+ name: string;
46
+ icon?: string;
47
+ image?: MediaType["url"];
48
+ };
49
+ export type HotelPerkType = {
50
+ name: string;
51
+ icon?: any;
52
+ id?: string;
53
+ companyId?: number;
54
+ hotelId?: string;
55
+ mediaId?: string;
56
+ media?: MediaType;
57
+ order?: number;
58
+ };
59
+ export type AdminHotelPerkConfigurationType = {
60
+ title?: string;
61
+ perks?: HotelPerkType[];
62
+ companyIcons?: MediaType[];
63
+ };
64
+ export interface IHotel {
65
+ /** FE/Admin Begin*/
66
+ id: string;
67
+ name: string;
68
+ chainId: number;
69
+ chainName: string | null;
70
+ phone: string;
71
+ latitude: string;
72
+ longitude: string;
73
+ utcOffset: string;
74
+ timeZone: string;
75
+ languageCode: string;
76
+ currencyCode: string;
77
+ checkInTime: string;
78
+ checkOutTime: string;
79
+ description: string;
80
+ locationDescription: string;
81
+ vgsVaultName?: string;
82
+ vgsMembers?: string;
83
+ vgsStandard?: string;
84
+ email: string;
85
+ shortName: string;
86
+ perkTitle?: string;
87
+ countryPrefix?: string;
88
+ policies: string;
89
+ hotelUrl: string;
90
+ checkoutUrl?: string;
91
+ paymentCardTypes: EPaymentCardType[];
92
+ distanceUnitType: EDistanceUnitType;
93
+ businessServices: IHotelService[];
94
+ hotelServices: IHotelService[];
95
+ cardProcessor: EHotelCardProcessor;
96
+ dealDisplayStrategy?: DealDisplayStrategyType;
97
+ stateFieldConfiguration: EHotelStateFieldConfiguration;
98
+ weekdayStartsOn: EHotelWeekdayStartsOn;
99
+ planpay?: Omit<PlanPayConfigs, "password">;
100
+ requireDeposit: boolean;
101
+ enableCreditCardSurcharge: boolean;
102
+ preventSameDayBookingsForDirtyRooms: boolean;
103
+ preventCancellation: boolean;
104
+ showMealPill: boolean;
105
+ showAddonLoader: boolean;
106
+ captureChildAge: boolean;
107
+ maxAdults: number;
108
+ maxChildren: number;
109
+ maxInfants: number;
110
+ pendingBookingTimeout: number;
111
+ }
112
+ export interface IHotelFrontend extends IHotel {
113
+ /** FE Only Begin */
114
+ address: AddressType;
115
+ rooms: {
116
+ [roomName: string]: HotelRoomType;
117
+ };
118
+ roomGroups: HotelRoomGroupsType[];
119
+ dataSource: HotelDataSource;
120
+ paymentMethods: EBookingPaymentMethod[];
121
+ integrations: EIntegration[];
122
+ availableCountries?: {
123
+ name: string;
124
+ value: string;
125
+ }[];
126
+ childConfiguration?: IChildConfiguration;
127
+ memberOnlySignupInputs?: InternalMemberSignInInputs;
128
+ defaultDatepickerType?: DatepickerType;
129
+ googleReCaptcha?: {
130
+ loadForMembers: boolean;
131
+ siteKey: string;
132
+ };
133
+ overwrites?: {
134
+ [roomCode: string]: {
135
+ RoomDimensions?: string;
136
+ prePerkDisclaimer?: string;
137
+ perks?: FrontendPerkType[];
138
+ };
139
+ };
140
+ company?: {
141
+ url?: string;
142
+ logo?: string;
143
+ };
144
+ vgs?: {
145
+ vaultNames: IVGSVaultNames;
146
+ };
147
+ colors: IHotelColorScheme;
148
+ images: string[];
149
+ heroImage: string;
150
+ googleMapsImage?: string;
151
+ quoteImageDesktop?: string;
152
+ quoteImageMobile?: string;
153
+ memberOnlyImage?: string;
154
+ bookNowPayLaterUrl?: string;
155
+ bestRateUrl?: string;
156
+ providerHotelID?: string;
157
+ memberOnlyPromoCode?: string;
158
+ logo?: string;
159
+ memberOnlyRates?: string[];
160
+ crossSellHotelIds?: string[];
161
+ memberOnlyModalUsePrimaryColor: boolean;
162
+ memberOnlyRenderRateLast: boolean;
163
+ forwardFindReservationToSynxis: boolean;
164
+ onLoad?: string | (() => void);
165
+ }
166
+ export interface IHotelAdmin extends IHotel {
167
+ /** Admin Only Begin */
168
+ planpayConfigs: PlanpayConfigs;
169
+ big4Configs: Big4Configs;
170
+ gdayConfigs: GdayConfigs;
171
+ tillConfigs: TillPaymentsConfigs;
172
+ activeCampaignConfigs: ActiveCampaignConfigs;
173
+ integrations: {
174
+ planpay: PlanPayConfigs;
175
+ tillPayments: TillPaymentsConfigs;
176
+ big4: Big4Configs;
177
+ };
178
+ useMinimumStayOnArrival: boolean;
179
+ splitChildAndInfant: boolean;
180
+ supportChildren: boolean;
181
+ reCaptchaLoadForMembers: boolean;
182
+ roomstaySendsEmails: boolean;
183
+ roomstaySendsEmailsCancellation: boolean;
184
+ reservationContactEmail?: string;
185
+ reCaptchaSiteKey?: string;
186
+ addressLine1?: string;
187
+ addressLine2?: string;
188
+ addressLine3?: string;
189
+ cityName?: string;
190
+ postalCode?: string;
191
+ state?: string;
192
+ country?: string;
193
+ availabilityType?: string;
194
+ calendarAvailabilityStrategy?: string;
195
+ cancellationEmailTemplate?: string;
196
+ confirmationEmailTemplate?: string;
197
+ ccBookingEmailsTo?: string;
198
+ crossSellDescription?: string;
199
+ crossSellHotelId?: string;
200
+ currentNightLastBookingTime?: string;
201
+ deletedDate?: string;
202
+ focusedCalendarRateId?: string;
203
+ frontendId: string;
204
+ providerId: string;
205
+ urlName?: string;
206
+ crossSellImagePath?: string;
207
+ environment?: string;
208
+ revinateToken?: string;
209
+ label?: string;
210
+ createdDate?: string;
211
+ updatedDate?: string;
212
+ supportedLanguages?: string[];
213
+ roomTypeCodes: string[];
214
+ rateMembersData: {
215
+ id: string;
216
+ rateCode: string;
217
+ hotelId: string;
218
+ companyId: number;
219
+ }[];
220
+ auxiliaryFilters: {
221
+ id: string;
222
+ name: string;
223
+ type: string;
224
+ includeAllAbove: boolean;
225
+ requireInput: boolean;
226
+ filterOptions: {
227
+ label: string;
228
+ value: number;
229
+ }[];
230
+ }[];
231
+ hotelColorScheme?: IHotelColorScheme;
232
+ hotelOverride?: IHotelOverrides;
233
+ images?: MediaType[];
234
+ logo?: MediaType;
235
+ heroImage?: MediaType;
236
+ googleMapsImage?: MediaType;
237
+ quoteImageDesktop?: MediaType;
238
+ quoteImageMobile?: MediaType;
239
+ memberOnlyImage?: MediaType;
240
+ maxChildAge?: number;
241
+ maxInfantAge?: number;
242
+ minChildAge?: number;
243
+ minInfantAge?: number;
244
+ passTemporaryBookingComment?: boolean;
245
+ preferProviderBookingId?: boolean;
246
+ perkConfiguration?: AdminHotelPerkConfigurationType;
247
+ priceModel: EHotelPriceModel;
248
+ providerData?: IHotelProviderData;
249
+ startsWeekOnDay: EHotelWeekdayStartsOn;
250
+ }
251
+ export interface IHotelProviderData {
252
+ rooms: {
253
+ [roomCode: string]: {
254
+ code: string;
255
+ name: string;
256
+ shortDescription: string;
257
+ longDescription: string;
258
+ bedType: string;
259
+ images: string[];
260
+ quantity: number;
261
+ maxOccupancy: number;
262
+ bedQuantity: number;
263
+ standardNumBeds: number;
264
+ maxRollaways: number;
265
+ amenities: {
266
+ type: string;
267
+ description: string;
268
+ }[];
269
+ features: {
270
+ type: string;
271
+ description: string;
272
+ }[];
273
+ };
274
+ };
275
+ }
@@ -0,0 +1,76 @@
1
+ export interface PlanpayConfigs {
2
+ deletedDate: string;
3
+ createdDate: string;
4
+ updatedDate: string;
5
+ companyId: number;
6
+ hotelId: string;
7
+ enabled: boolean;
8
+ username: string;
9
+ password: string;
10
+ endpoint: string;
11
+ minDaysShowPlanpay: number;
12
+ env: string;
13
+ }
14
+ export interface Big4Configs {
15
+ deletedDate: string;
16
+ createdDate: string;
17
+ updatedDate: string;
18
+ companyId: number;
19
+ hotelId: string;
20
+ enabled: boolean;
21
+ big4ParkId: string;
22
+ freeDiscountId: number;
23
+ perksPlusDiscountId: number;
24
+ vipPerksDiscountId: number;
25
+ }
26
+ export interface PlanPayConfigs {
27
+ username: string;
28
+ password: string;
29
+ env: string;
30
+ minDaysShowPlanpay: number;
31
+ enabled?: boolean;
32
+ }
33
+ export interface TillPaymentsConfigs {
34
+ deletedDate: string;
35
+ createdDate: string;
36
+ updatedDate: string;
37
+ companyId: number;
38
+ hotelId: string;
39
+ enabled: boolean;
40
+ apiKey: string;
41
+ sharedSecred: string;
42
+ apiUsername: string;
43
+ apiPassword: string;
44
+ useTestingDatabase: boolean;
45
+ includeSignature: boolean;
46
+ publicIntegrationKey: string;
47
+ }
48
+ export interface Big4Configs {
49
+ parkId: string;
50
+ freeDiscountId: number;
51
+ perksPlusDiscountId: number;
52
+ vipPerksDiscountId: number;
53
+ enabled: boolean;
54
+ }
55
+ export interface ActiveCampaignConfigs {
56
+ deletedDate: string;
57
+ createdDate: string;
58
+ updatedDate: string;
59
+ companyId: number;
60
+ hotelId: string;
61
+ enabled: boolean;
62
+ apiUrl: string;
63
+ apiKey: string;
64
+ listId: number;
65
+ tagName: string;
66
+ }
67
+ export interface GdayConfigs {
68
+ deletedDate: string;
69
+ createdDate: string;
70
+ updatedDate: string;
71
+ parkId: string;
72
+ gdayDiscountId: number;
73
+ companyId: number;
74
+ hotelId: string;
75
+ enabled: boolean;
76
+ }