@roomstay/core 0.1.75 → 0.1.76-1

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 (56) 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/AnalyticsEvents/IAnalyticsEvent.type.d.ts +38 -12
  32. package/dist/types/AnalyticsEvents/IRoomstayEventData.type.d.ts +27 -2
  33. package/dist/types/AnalyticsEvents/MetaCapiTransformer.d.ts +6 -2
  34. package/dist/types/Api/ReservationsDTO.d.ts +102 -0
  35. package/dist/types/Api/RoomNightRateDTO.d.ts +7 -0
  36. package/dist/types/GiftCards/GiftCard.types.d.ts +89 -2
  37. package/dist/types/GiftCards/GiftCardLogs.enum.d.ts +1 -1
  38. package/dist/types/Hotel/IHotel.enum.d.ts +32 -0
  39. package/dist/types/Hotel/IHotel.type.d.ts +275 -0
  40. package/dist/types/Hotel/IntegrationConfigs.type.d.ts +76 -0
  41. package/dist/types/Hotel/InternalMemberSignInModal.type.d.ts +13 -0
  42. package/dist/types/Hotel/InternalMemberSignInModal.types.d.ts +13 -0
  43. package/dist/types/Maintenance/IMaintenanceStatus.type.d.ts +4 -1
  44. package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +5 -0
  45. package/dist/types/Room/HotelRoom.type.d.ts +24 -0
  46. package/dist/types/Room/SynxisRoom.type.d.ts +35 -0
  47. package/dist/types/index.d.ts +12 -2
  48. package/dist/utils/CalendarHelper.d.ts +16 -0
  49. package/dist/utils/TotalCalculator.d.ts +4 -0
  50. package/dist/utils/color.d.ts +17 -0
  51. package/dist/utils/index.node.d.ts +2 -0
  52. package/dist/utils/index.web.d.ts +4 -0
  53. package/dist/utils/roundMoney.d.ts +11 -1
  54. package/dist/web.js +1 -1
  55. package/dist/web.js.map +1 -0
  56. package/package.json +1 -1
@@ -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
+ };
@@ -114,9 +114,40 @@ export declare const EditGiftCardSchema: z.ZodObject<{
114
114
  recipientPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
115
  }, z.core.$strip>;
116
116
  export type IEditGiftCardRequest = z.infer<typeof EditGiftCardSchema>;
117
+ /**
118
+ * Payment type enum - defines how payment is processed
119
+ */
120
+ export declare enum EGiftCardPaymentType {
121
+ Passthrough = "Passthrough",// VGS tokenization
122
+ PaymentProcessor = "PaymentProcessor"
123
+ }
117
124
  /**
118
125
  * Schema for validating purchasing a gift card.
119
126
  */
127
+ export declare const CreatePaymentSessionSchema: z.ZodObject<{
128
+ companyId: z.ZodNumber;
129
+ amount: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
130
+ currency: z.ZodDefault<z.ZodString>;
131
+ }, z.core.$strip>;
132
+ export type ICreatePaymentSessionRequest = z.infer<typeof CreatePaymentSessionSchema>;
133
+ export type ICreatePaymentSessionResponse = {
134
+ sessionId: string;
135
+ sessionData: string;
136
+ clientKey: string;
137
+ };
138
+ export declare const PaymentProcessorDataSchema: z.ZodObject<{
139
+ sessionId: z.ZodString;
140
+ resultCode: z.ZodString;
141
+ pspReference: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strip>;
143
+ export type IPaymentProcessorData = z.infer<typeof PaymentProcessorDataSchema>;
144
+ export declare const PassthroughPaymentDataSchema: z.ZodObject<{
145
+ cardHolder: z.ZodString;
146
+ cardNumberToken: z.ZodString;
147
+ cardCvcToken: z.ZodString;
148
+ cardExpiry: z.ZodString;
149
+ }, z.core.$strip>;
150
+ export type IPassthroughPaymentData = z.infer<typeof PassthroughPaymentDataSchema>;
120
151
  export declare const PurchaseGiftCardSchema: z.ZodObject<{
121
152
  amount: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
122
153
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -140,15 +171,34 @@ export declare const PurchaseGiftCardSchema: z.ZodObject<{
140
171
  companyId: z.ZodNumber;
141
172
  sendViaEmail: z.ZodDefault<z.ZodBoolean>;
142
173
  payment: z.ZodOptional<z.ZodObject<{
174
+ sessionId: z.ZodString;
175
+ resultCode: z.ZodString;
176
+ pspReference: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>>;
178
+ passthroughPayment: z.ZodOptional<z.ZodObject<{
143
179
  cardHolder: z.ZodString;
144
180
  cardNumberToken: z.ZodString;
145
- cardExpiry: z.ZodString;
146
181
  cardCvcToken: z.ZodString;
182
+ cardExpiry: z.ZodString;
147
183
  }, z.core.$strip>>;
148
184
  }, z.core.$strip>;
149
185
  export type IPurchaseGiftCardRequest = z.infer<typeof PurchaseGiftCardSchema>;
186
+ export type IPurchasePaymentData = {
187
+ payment: IPaymentProcessorData;
188
+ } | {
189
+ passthroughPayment: IPassthroughPaymentData;
190
+ };
150
191
  export type IPurchaseGiftCardResponse = IGiftCardDTO & {
151
- password: string;
192
+ password: string | null;
193
+ };
194
+ export declare const RefundGiftCardSchema: z.ZodObject<{
195
+ giftCardId: z.ZodNumber;
196
+ reason: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ export type IRefundGiftCardRequest = z.infer<typeof RefundGiftCardSchema>;
199
+ export type IRefundGiftCardResponse = {
200
+ success: boolean;
201
+ refundReference: string;
152
202
  };
153
203
  export declare const ValidateGiftCardSchema: z.ZodObject<{
154
204
  companyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -164,6 +214,34 @@ export declare const RedeemGiftCardSchema: z.ZodObject<{
164
214
  description: z.ZodString;
165
215
  }, z.core.$strip>;
166
216
  export type IRedeemGiftCardRequest = z.infer<typeof RedeemGiftCardSchema>;
217
+ export declare enum EGiftCardPaymentProvider {
218
+ Adyen = "Adyen"
219
+ }
220
+ export declare enum EGiftCardPaymentStatus {
221
+ Pending = "Pending",
222
+ Authorized = "Authorized",
223
+ Captured = "Captured",
224
+ Failed = "Failed",
225
+ Refunded = "Refunded"
226
+ }
227
+ export declare enum AdyenResultCode {
228
+ Authorised = "Authorised",
229
+ Refused = "Refused",
230
+ Cancelled = "Cancelled",
231
+ Pending = "Pending",
232
+ Received = "Received",
233
+ Error = "Error",
234
+ IdentifyShopper = "IdentifyShopper",
235
+ ChallengeShopper = "ChallengeShopper"
236
+ }
237
+ export declare enum AdyenEventCode {
238
+ AUTHORISATION = "AUTHORISATION",
239
+ CAPTURE = "CAPTURE",
240
+ REFUND = "REFUND",
241
+ CANCELLATION = "CANCELLATION",
242
+ REFUND_FAILED = "REFUND_FAILED",
243
+ CAPTURE_FAILED = "CAPTURE_FAILED"
244
+ }
167
245
  export declare enum EGiftCardTransactionType {
168
246
  Purchase = "Purchase",
169
247
  Redemption = "Redemption",
@@ -236,3 +314,12 @@ export type IAdminGiftCardLogDTO = {
236
314
  new: string;
237
315
  }> | null;
238
316
  };
317
+ /**
318
+ * Email branding configuration for gift card emails.
319
+ */
320
+ export type IGiftCardEmailBranding = {
321
+ logoUrl: string;
322
+ primaryColor: string;
323
+ backgroundColor: string;
324
+ cardImageUrl: string;
325
+ };
@@ -28,7 +28,7 @@ export declare enum ELogType {
28
28
  UserCreated = "User Created",
29
29
  UserLinked = "User Linked to Company",
30
30
  Purchase = "Gift Card Purchased",
31
- Payment = "Payment Captured",
31
+ Payment = "Payment",
32
32
  Email = "Email Delivery",
33
33
  Transaction = "Gift Card Transaction"
34
34
  }
@@ -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
+ }
@@ -0,0 +1,13 @@
1
+ export type InputGroupDimensions = "1" | "2/2" | "3/1" | "1/3" | "1/2/2" | "1/1/1";
2
+ export interface InternalMemberSignInInputs {
3
+ Lines: {
4
+ Dimension: InputGroupDimensions;
5
+ Inputs: {
6
+ name: string;
7
+ type: "TextBox";
8
+ placeholder?: string;
9
+ isRequired?: boolean;
10
+ validate?: (value: string) => string | boolean;
11
+ }[];
12
+ }[];
13
+ }
@@ -0,0 +1,13 @@
1
+ export type InputGroupDimensions = "1" | "2/2" | "3/1" | "1/3" | "1/2/2" | "1/1/1";
2
+ export interface InternalMemberSignInInputs {
3
+ Lines: {
4
+ Dimension: InputGroupDimensions;
5
+ Inputs: {
6
+ name: string;
7
+ type: "TextBox";
8
+ placeholder?: string;
9
+ isRequired?: boolean;
10
+ validate?: (value: string) => string | boolean;
11
+ }[];
12
+ }[];
13
+ }
@@ -1,5 +1,4 @@
1
1
  export type IMaintenanceStatus = {
2
- uuid: string;
3
2
  /**
4
3
  * Which service is currently experiencing issues.
5
4
  */
@@ -10,6 +9,10 @@ export type IMaintenanceStatus = {
10
9
  * @example 2023-10-01T00:00:00Z
11
10
  */
12
11
  startDate: string;
12
+ /**
13
+ * UUID generated on create. Is not used as a primary key, or an index.
14
+ */
15
+ uuid: string;
13
16
  endDate: string;
14
17
  /**
15
18
  * Whether the status is currently in effect or not
@@ -4,3 +4,8 @@ export declare enum EGuaranteePolicyDepositMode {
4
4
  FirstNight = "FirstNight",
5
5
  None = "None"
6
6
  }
7
+ export declare enum EGuarantyPolicyPrepaymentType {
8
+ FixedAmount = "fixed",
9
+ Percentage = "percentage",
10
+ Nights = "nights"
11
+ }