@roomstay/core 0.1.78-2 → 0.1.78

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 (247) hide show
  1. package/dist/browser/index.js +3901 -0
  2. package/dist/browser/index.js.map +1 -0
  3. package/dist/node/index.cjs +25 -0
  4. package/dist/node/index.cjs.map +1 -0
  5. package/dist/node/index.mjs +3901 -0
  6. package/dist/node/index.mjs.map +1 -0
  7. package/dist/node.js +1 -1
  8. package/dist/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts +12 -38
  9. package/dist/types/AnalyticsEvents/IRoomstayEventData.type.d.ts +2 -27
  10. package/dist/types/AnalyticsEvents/MetaCapiTransformer.d.ts +2 -6
  11. package/dist/types/Booking/IBookingExtraFields.type.d.ts +8 -4
  12. package/dist/types/Booking/PlaceBooking.types.d.ts +0 -1
  13. package/dist/types/Company/ECompanyProvider.enum.d.ts +1 -2
  14. package/dist/types/Company/IAdminCompany.type.d.ts +0 -6
  15. package/dist/types/GiftCards/GiftCard.types.d.ts +0 -9
  16. package/dist/types/Maintenance/IMaintenanceStatus.type.d.ts +1 -4
  17. package/dist/types/Member/IRoomstayMember.type.d.ts +1 -2
  18. package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +0 -5
  19. package/dist/types/index.d.ts +2 -19
  20. package/dist/types/index.d.ts.map +1 -0
  21. package/dist/types/types/Addons/Addon.enum.d.ts +3 -0
  22. package/dist/types/types/Addons/Addon.enum.d.ts.map +1 -0
  23. package/dist/types/{Addon/Addon.d.ts → types/Addons/Addon.types.d.ts} +21 -3
  24. package/dist/types/types/Addons/Addon.types.d.ts.map +1 -0
  25. package/dist/types/types/Analytics/IBigQueryResults.type.d.ts +46 -0
  26. package/dist/types/types/Analytics/IBigQueryResults.type.d.ts.map +1 -0
  27. package/dist/types/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts +65 -0
  28. package/dist/types/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts.map +1 -0
  29. package/dist/types/types/AnalyticsEvents/IAnalyticsSession.type.d.ts +21 -0
  30. package/dist/types/types/AnalyticsEvents/IAnalyticsSession.type.d.ts.map +1 -0
  31. package/dist/types/types/AnalyticsEvents/IRoomstayEventData.type.d.ts +66 -0
  32. package/dist/types/types/AnalyticsEvents/IRoomstayEventData.type.d.ts.map +1 -0
  33. package/dist/types/types/AnalyticsEvents/MetaCapiTransformer.d.ts +22 -0
  34. package/dist/types/types/AnalyticsEvents/MetaCapiTransformer.d.ts.map +1 -0
  35. package/dist/types/{Api/ReservationsDTO.d.ts → types/Api/Reservations.type.d.ts} +11 -28
  36. package/dist/types/types/Api/Reservations.type.d.ts.map +1 -0
  37. package/dist/types/{Api/RoomNightRateDTO.d.ts → types/Api/RoomNightRate.type.d.ts} +1 -0
  38. package/dist/types/types/Api/RoomNightRate.type.d.ts.map +1 -0
  39. package/dist/types/types/Availability/Availability.types.d.ts +122 -0
  40. package/dist/types/types/Availability/Availability.types.d.ts.map +1 -0
  41. package/dist/types/types/Booking/ConfirmBooking.types.d.ts +22 -0
  42. package/dist/types/types/Booking/ConfirmBooking.types.d.ts.map +1 -0
  43. package/dist/types/types/Booking/EBooking.types.d.ts +13 -0
  44. package/dist/types/types/Booking/EBooking.types.d.ts.map +1 -0
  45. package/dist/types/types/Booking/GetBooking.types.d.ts +8 -0
  46. package/dist/types/types/Booking/GetBooking.types.d.ts.map +1 -0
  47. package/dist/types/{Booking/IBookingCreateErrorResponse.d.ts → types/Booking/IBookingCreateErrorResponse.type.d.ts} +3 -0
  48. package/dist/types/types/Booking/IBookingCreateErrorResponse.type.d.ts.map +1 -0
  49. package/dist/types/types/Booking/IBookingExtraFields.type.d.ts +6 -0
  50. package/dist/types/types/Booking/IBookingExtraFields.type.d.ts.map +1 -0
  51. package/dist/types/types/Booking/IBookingPayment.type.d.ts +106 -0
  52. package/dist/types/types/Booking/IBookingPayment.type.d.ts.map +1 -0
  53. package/dist/types/types/Booking/IBookingQuote.type.d.ts +31 -0
  54. package/dist/types/types/Booking/IBookingQuote.type.d.ts.map +1 -0
  55. package/dist/types/types/Booking/ICommonQueryParameters.type.d.ts +4 -0
  56. package/dist/types/types/Booking/ICommonQueryParameters.type.d.ts.map +1 -0
  57. package/dist/types/types/Booking/Itinerary.types.d.ts +100 -0
  58. package/dist/types/types/Booking/Itinerary.types.d.ts.map +1 -0
  59. package/dist/types/types/Booking/PencilReservation.types.d.ts +20 -0
  60. package/dist/types/types/Booking/PencilReservation.types.d.ts.map +1 -0
  61. package/dist/types/types/Booking/PlaceBooking.types.d.ts +90 -0
  62. package/dist/types/types/Booking/PlaceBooking.types.d.ts.map +1 -0
  63. package/dist/types/types/Company/ECompanyProvider.enum.d.ts +9 -0
  64. package/dist/types/types/Company/ECompanyProvider.enum.d.ts.map +1 -0
  65. package/dist/types/types/Company/IAdminCompany.type.d.ts +47 -0
  66. package/dist/types/types/Company/IAdminCompany.type.d.ts.map +1 -0
  67. package/dist/types/types/Company/IAdminCompanyUser.type.d.ts +16 -0
  68. package/dist/types/types/Company/IAdminCompanyUser.type.d.ts.map +1 -0
  69. package/dist/types/types/Events/ERoomstayEventSource.enum.d.ts +5 -0
  70. package/dist/types/types/Events/ERoomstayEventSource.enum.d.ts.map +1 -0
  71. package/dist/types/types/Events/IRoomstayEvent.type.d.ts +51 -0
  72. package/dist/types/types/Events/IRoomstayEvent.type.d.ts.map +1 -0
  73. package/dist/types/types/Fees/EFeeType.enum.d.ts +8 -0
  74. package/dist/types/types/Fees/EFeeType.enum.d.ts.map +1 -0
  75. package/dist/types/types/Fees/IFee.type.d.ts +12 -0
  76. package/dist/types/types/Fees/IFee.type.d.ts.map +1 -0
  77. package/dist/types/types/Fees/IFeeConfigurationOptions.type.d.ts +7 -0
  78. package/dist/types/types/Fees/IFeeConfigurationOptions.type.d.ts.map +1 -0
  79. package/dist/types/types/General/Format.types.d.ts +2 -0
  80. package/dist/types/types/General/Format.types.d.ts.map +1 -0
  81. package/dist/types/types/General/HttpMethod.enum.d.ts +10 -0
  82. package/dist/types/types/General/HttpMethod.enum.d.ts.map +1 -0
  83. package/dist/types/types/General/IMessage.type.d.ts +7 -0
  84. package/dist/types/types/General/IMessage.type.d.ts.map +1 -0
  85. package/dist/types/types/General/Pagination.types.d.ts +21 -0
  86. package/dist/types/types/General/Pagination.types.d.ts.map +1 -0
  87. package/dist/types/types/General/Warning.type.d.ts +15 -0
  88. package/dist/types/types/General/Warning.type.d.ts.map +1 -0
  89. package/dist/types/types/GiftCards/GiftCard.types.d.ts +346 -0
  90. package/dist/types/types/GiftCards/GiftCard.types.d.ts.map +1 -0
  91. package/dist/types/types/GiftCards/GiftCardAuth.types.d.ts +32 -0
  92. package/dist/types/types/GiftCards/GiftCardAuth.types.d.ts.map +1 -0
  93. package/dist/types/types/GiftCards/GiftCardLogs.enum.d.ts +35 -0
  94. package/dist/types/types/GiftCards/GiftCardLogs.enum.d.ts.map +1 -0
  95. package/dist/types/types/Hotel/EHotelAddressRequirement.enum.d.ts +6 -0
  96. package/dist/types/types/Hotel/EHotelAddressRequirement.enum.d.ts.map +1 -0
  97. package/dist/types/types/Hotel/EHotelPriceModel.enum.d.ts +6 -0
  98. package/dist/types/types/Hotel/EHotelPriceModel.enum.d.ts.map +1 -0
  99. package/dist/types/types/Hotel/EHotelStateFieldConfiguration.enum.d.ts +6 -0
  100. package/dist/types/types/Hotel/EHotelStateFieldConfiguration.enum.d.ts.map +1 -0
  101. package/dist/types/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +5 -0
  102. package/dist/types/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts.map +1 -0
  103. package/dist/types/types/Hotel/EIntegration.enum.d.ts +10 -0
  104. package/dist/types/types/Hotel/EIntegration.enum.d.ts.map +1 -0
  105. package/dist/types/types/Hotel/IAuxiliaryFilter.type.d.ts +25 -0
  106. package/dist/types/types/Hotel/IAuxiliaryFilter.type.d.ts.map +1 -0
  107. package/dist/types/types/Hotel/IHotelColorScheme.type.d.ts +30 -0
  108. package/dist/types/types/Hotel/IHotelColorScheme.type.d.ts.map +1 -0
  109. package/dist/types/types/Hotel/IHotelOverrides.type.d.ts +29 -0
  110. package/dist/types/types/Hotel/IHotelOverrides.type.d.ts.map +1 -0
  111. package/dist/types/types/Hotel/IHotelReplica.type.d.ts +57 -0
  112. package/dist/types/types/Hotel/IHotelReplica.type.d.ts.map +1 -0
  113. package/dist/types/types/Hotel/IHotelService.type.d.ts +7 -0
  114. package/dist/types/types/Hotel/IHotelService.type.d.ts.map +1 -0
  115. package/dist/types/types/Image/IRoomstayImage.type.d.ts +9 -0
  116. package/dist/types/types/Image/IRoomstayImage.type.d.ts.map +1 -0
  117. package/dist/types/types/Maintenance/IMaintenanceStatus.type.d.ts +27 -0
  118. package/dist/types/types/Maintenance/IMaintenanceStatus.type.d.ts.map +1 -0
  119. package/dist/types/types/Media/IMedia.type.d.ts +11 -0
  120. package/dist/types/types/Media/IMedia.type.d.ts.map +1 -0
  121. package/dist/types/types/Member/IMember.type.d.ts +8 -0
  122. package/dist/types/types/Member/IMember.type.d.ts.map +1 -0
  123. package/dist/types/types/Member/IMemberVerification.type.d.ts +11 -0
  124. package/dist/types/types/Member/IMemberVerification.type.d.ts.map +1 -0
  125. package/dist/types/types/Member/IRoomstayCognitoMember.type.d.ts +5 -0
  126. package/dist/types/types/Member/IRoomstayCognitoMember.type.d.ts.map +1 -0
  127. package/dist/types/types/Member/IRoomstayMember.type.d.ts +19 -0
  128. package/dist/types/types/Member/IRoomstayMember.type.d.ts.map +1 -0
  129. package/dist/types/types/Member/IRoomstayMemberBooking.type.d.ts +29 -0
  130. package/dist/types/types/Member/IRoomstayMemberBooking.type.d.ts.map +1 -0
  131. package/dist/types/types/Member/IRoomstayMemberBookingAddress.type.d.ts +10 -0
  132. package/dist/types/types/Member/IRoomstayMemberBookingAddress.type.d.ts.map +1 -0
  133. package/dist/types/types/Member/IRoomstayMemberBookingItem.type.d.ts +26 -0
  134. package/dist/types/types/Member/IRoomstayMemberBookingItem.type.d.ts.map +1 -0
  135. package/dist/types/types/Member/IRoomstayMemberBookingProfile.type.d.ts +12 -0
  136. package/dist/types/types/Member/IRoomstayMemberBookingProfile.type.d.ts.map +1 -0
  137. package/dist/types/types/Member/IRoomstayMemberCards.type.d.ts +13 -0
  138. package/dist/types/types/Member/IRoomstayMemberCards.type.d.ts.map +1 -0
  139. package/dist/types/types/Member/IRoomstayMemberJWTData.type.d.ts +4 -0
  140. package/dist/types/types/Member/IRoomstayMemberJWTData.type.d.ts.map +1 -0
  141. package/dist/types/types/Member/ISession.type.d.ts +5 -0
  142. package/dist/types/types/Member/ISession.type.d.ts.map +1 -0
  143. package/dist/types/types/OHIP/IOHIPConfiguration.types.d.ts +13 -0
  144. package/dist/types/types/OHIP/IOHIPConfiguration.types.d.ts.map +1 -0
  145. package/dist/types/types/OHIP/index.d.ts +2 -0
  146. package/dist/types/types/OHIP/index.d.ts.map +1 -0
  147. package/dist/types/types/Package/Package.types.d.ts +105 -0
  148. package/dist/types/types/Package/Package.types.d.ts.map +1 -0
  149. package/dist/types/types/Policies/EGuaranteePolicy.enum.d.ts +7 -0
  150. package/dist/types/types/Policies/EGuaranteePolicy.enum.d.ts.map +1 -0
  151. package/dist/types/types/PromoCode/EPromoCodeDiscountType.enum.d.ts +6 -0
  152. package/dist/types/types/PromoCode/EPromoCodeDiscountType.enum.d.ts.map +1 -0
  153. package/dist/types/types/PromoCode/PromoCodeStayDateRangeType.enum.d.ts +12 -0
  154. package/dist/types/types/PromoCode/PromoCodeStayDateRangeType.enum.d.ts.map +1 -0
  155. package/dist/types/{PMSSync/EPMSSyncStatus.enum.d.ts → types/RMS/ERMSAuthSyncHistoryStatus.type.d.ts} +4 -3
  156. package/dist/types/types/RMS/ERMSAuthSyncHistoryStatus.type.d.ts.map +1 -0
  157. package/dist/types/types/RMS/ERMSDiscountType.enum.d.ts +7 -0
  158. package/dist/types/types/RMS/ERMSDiscountType.enum.d.ts.map +1 -0
  159. package/dist/types/types/RMS/ERMSSyncStrategy.enum.d.ts +39 -0
  160. package/dist/types/types/RMS/ERMSSyncStrategy.enum.d.ts.map +1 -0
  161. package/dist/types/types/RMS/IRMSPropertyDiscount.type.d.ts +34 -0
  162. package/dist/types/types/RMS/IRMSPropertyDiscount.type.d.ts.map +1 -0
  163. package/dist/types/types/RMS/IRMSRequirement.type.d.ts +21 -0
  164. package/dist/types/types/RMS/IRMSRequirement.type.d.ts.map +1 -0
  165. package/dist/types/types/RMS/IRMSSyncResponse.type.d.ts +9 -0
  166. package/dist/types/types/RMS/IRMSSyncResponse.type.d.ts.map +1 -0
  167. package/dist/types/types/RMS/RMSBookingSource.type.d.ts +8 -0
  168. package/dist/types/types/RMS/RMSBookingSource.type.d.ts.map +1 -0
  169. package/dist/types/types/Room/IRoomGroup.type.d.ts +19 -0
  170. package/dist/types/types/Room/IRoomGroup.type.d.ts.map +1 -0
  171. package/dist/types/types/index.d.ts +139 -0
  172. package/dist/types/types/index.d.ts.map +1 -0
  173. package/dist/types/utils/TotalCalculator.d.ts +73 -0
  174. package/dist/types/utils/TotalCalculator.d.ts.map +1 -0
  175. package/dist/types/utils/bookingTotal.d.ts +8 -0
  176. package/dist/types/utils/bookingTotal.d.ts.map +1 -0
  177. package/dist/types/utils/calculateFee.d.ts +11 -0
  178. package/dist/types/utils/calculateFee.d.ts.map +1 -0
  179. package/dist/types/utils/feeTypes.d.ts +6 -0
  180. package/dist/types/utils/feeTypes.d.ts.map +1 -0
  181. package/dist/types/utils/index.d.ts +11 -0
  182. package/dist/types/utils/index.d.ts.map +1 -0
  183. package/dist/types/utils/reflection.d.ts +10 -0
  184. package/dist/types/utils/reflection.d.ts.map +1 -0
  185. package/dist/types/utils/roomstayImageResize.d.ts +15 -0
  186. package/dist/types/utils/roomstayImageResize.d.ts.map +1 -0
  187. package/dist/types/utils/roundMoney.d.ts +11 -0
  188. package/dist/types/utils/roundMoney.d.ts.map +1 -0
  189. package/dist/types/utils/typeUtils.d.ts +2 -0
  190. package/dist/types/utils/typeUtils.d.ts.map +1 -0
  191. package/dist/types/utils/uppercaseString.d.ts +2 -0
  192. package/dist/types/utils/uppercaseString.d.ts.map +1 -0
  193. package/dist/types/utils/zodUtils.d.ts +20 -0
  194. package/dist/types/utils/zodUtils.d.ts.map +1 -0
  195. package/dist/utils/roundMoney.d.ts +1 -11
  196. package/dist/web.js +1 -1
  197. package/package.json +1 -1
  198. package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -16
  199. package/dist/components/DateRangePicker/DateRangePicker.type.d.ts +0 -16
  200. package/dist/components/DateRangePicker/DateRangePickerContext.d.ts +0 -16
  201. package/dist/components/DateRangePicker/DateRangePickerDay.d.ts +0 -22
  202. package/dist/components/DateRangePicker/DateRangePickerDays.d.ts +0 -7
  203. package/dist/components/DateRangePicker/DateRangePickerMonth.d.ts +0 -9
  204. package/dist/components/DateRangePicker/FloatingDateRangePicker.d.ts +0 -26
  205. package/dist/components/DateRangePicker/index.d.ts +0 -3
  206. package/dist/components/Icon/Icon.d.ts +0 -19
  207. package/dist/components/Icon/index.d.ts +0 -1
  208. package/dist/components/Overlay/Overlay.d.ts +0 -21
  209. package/dist/components/Overlay/index.d.ts +0 -1
  210. package/dist/components/RoomstayPortal/RoomstayPortal.d.ts +0 -8
  211. package/dist/components/RoomstayPortal/index.d.ts +0 -1
  212. package/dist/components/Text/Text.d.ts +0 -18
  213. package/dist/components/Text/Text.type.d.ts +0 -14
  214. package/dist/components/Text/index.d.ts +0 -2
  215. package/dist/components/animations/AutoAutoHeight.d.ts +0 -9
  216. package/dist/components/animations/Fade.d.ts +0 -13
  217. package/dist/components/animations/index.d.ts +0 -1
  218. package/dist/components/index.d.ts +0 -6
  219. package/dist/hooks/BodyClickHook.d.ts +0 -8
  220. package/dist/index.node.d.ts +0 -2
  221. package/dist/index.web.d.ts +0 -3
  222. package/dist/node.js.map +0 -1
  223. package/dist/roomstay-core-0.1.26.tgz +0 -0
  224. package/dist/stories/DateRangePicker.stories.d.ts +0 -8
  225. package/dist/stories/FloatingDateRangePicker.stories.d.ts +0 -5
  226. package/dist/types/Addon/Addon.enum.d.ts +0 -14
  227. package/dist/types/Addon/Addon.type.d.ts +0 -24
  228. package/dist/types/Booking/IBookingStatus.type.d.ts +0 -5
  229. package/dist/types/Booking/IPrice.type.d.ts +0 -7
  230. package/dist/types/Hotel/IHotel.enum.d.ts +0 -32
  231. package/dist/types/Hotel/IHotel.type.d.ts +0 -275
  232. package/dist/types/Hotel/IntegrationConfigs.type.d.ts +0 -76
  233. package/dist/types/Hotel/InternalMemberSignInModal.type.d.ts +0 -13
  234. package/dist/types/Hotel/InternalMemberSignInModal.types.d.ts +0 -13
  235. package/dist/types/Member/IRoomstayMemberLoyalty.type.d.ts +0 -16
  236. package/dist/types/Newbook/ENewbookRegion.enum.d.ts +0 -7
  237. package/dist/types/Newbook/ENewbookSyncStrategy.enum.d.ts +0 -5
  238. package/dist/types/Newbook/index.d.ts +0 -2
  239. package/dist/types/PMSSync/IPMSSyncResponse.type.d.ts +0 -10
  240. package/dist/types/PMSSync/index.d.ts +0 -17
  241. package/dist/types/Room/HotelRoom.type.d.ts +0 -24
  242. package/dist/types/Room/SynxisRoom.type.d.ts +0 -35
  243. package/dist/utils/CalendarHelper.d.ts +0 -16
  244. package/dist/utils/color.d.ts +0 -17
  245. package/dist/utils/index.node.d.ts +0 -2
  246. package/dist/utils/index.web.d.ts +0 -4
  247. package/dist/web.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  export type IMaintenanceStatus = {
2
+ uuid: string;
2
3
  /**
3
4
  * Which service is currently experiencing issues.
4
5
  */
@@ -9,10 +10,6 @@ export type IMaintenanceStatus = {
9
10
  * @example 2023-10-01T00:00:00Z
10
11
  */
11
12
  startDate: string;
12
- /**
13
- * UUID generated on create. Is not used as a primary key, or an index.
14
- */
15
- uuid: string;
16
13
  endDate: string;
17
14
  /**
18
15
  * Whether the status is currently in effect or not
@@ -1,4 +1,4 @@
1
- import { IRoomstayCognitoMember, IRoomstayMemberBooking, IRoomstayMemberCards, IRoomstayMemberLoyalty } from '../index.js';
1
+ import { IRoomstayCognitoMember, IRoomstayMemberBooking, IRoomstayMemberCards } from '../index.js';
2
2
  export interface IRoomstayMember extends IRoomstayCognitoMember {
3
3
  username: string;
4
4
  email: string;
@@ -15,5 +15,4 @@ export interface IRoomstayMember extends IRoomstayCognitoMember {
15
15
  defaultCard: string;
16
16
  bookings: IRoomstayMemberBooking[];
17
17
  cards: IRoomstayMemberCards[];
18
- loyalty?: IRoomstayMemberLoyalty[];
19
18
  }
@@ -4,8 +4,3 @@ 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
- }
@@ -42,20 +42,14 @@ export * from './Room/IRoomGroup.type';
42
42
  /**
43
43
  * RMS
44
44
  */
45
+ export * from './RMS/ERMSAuthSyncHistoryStatus.type';
45
46
  export * from './RMS/ERMSDiscountType.enum';
46
47
  export * from './RMS/ERMSSyncStrategy.enum';
47
48
  export * from './RMS/IRMSPropertyDiscount.type';
48
49
  export * from './RMS/IRMSRequirement.type';
50
+ export * from './RMS/IRMSSyncResponse.type';
49
51
  export * from './RMS/RMSBookingSource.type';
50
52
  export * from './RMS/RMSGuestDTO.type';
51
- /**
52
- * Newbook
53
- */
54
- export * from './Newbook';
55
- /**
56
- * PMS Sync
57
- */
58
- export * from './PMSSync';
59
53
  /**
60
54
  * OHIP
61
55
  */
@@ -79,7 +73,6 @@ export * from './Member/IRoomstayMemberBookingItem.type';
79
73
  export * from './Member/IRoomstayMemberBookingProfile.type';
80
74
  export * from './Member/IRoomstayMemberCards.type';
81
75
  export * from './Member/IRoomstayMemberJWTData.type';
82
- export * from './Member/IRoomstayMemberLoyalty.type';
83
76
  export * from './Member/ISession.type';
84
77
  export * from './Member/EMembershipProvider.type';
85
78
  /**
@@ -118,11 +111,6 @@ export * from './Media/IMedia.type';
118
111
  export * from './Fees/EFeeType.enum';
119
112
  export * from './Fees/IFee.type';
120
113
  export * from './Fees/IFeeConfigurationOptions.type';
121
- /**
122
- * Api
123
- */
124
- export * from './Api/Reservations.type';
125
- export * from './Api/RoomNightRate.type';
126
114
  /**
127
115
  * Analytics
128
116
  */
@@ -134,11 +122,6 @@ export * from './AnalyticsEvents/IAnalyticsEvent.type';
134
122
  export * from './AnalyticsEvents/IAnalyticsSession.type';
135
123
  export * from './AnalyticsEvents/IRoomstayEventData.type';
136
124
  export * from './AnalyticsEvents/MetaCapiTransformer';
137
- /**
138
- * Gift Cards
139
- */
140
- export * from './GiftCards/GiftCard.types';
141
- export * from './GiftCards/GiftCardAuth.types';
142
125
  /**
143
126
  * Addons
144
127
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { EAddonPricingType } from './Addon.types';
2
+ export declare const ADDON_PER_NIGHT_TYPES: EAddonPricingType[];
3
+ //# sourceMappingURL=Addon.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Addon.enum.d.ts","sourceRoot":"","sources":["../../../../src/types/Addons/Addon.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,qBAAqB,qBAWjC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { SimpleItemisedFee } from "types/Fees/IFee.type";
2
- export declare enum AddonPricingType {
1
+ import { SimpleItemisedFee } from '../Fees/IFee.type';
2
+ export declare enum EAddonPricingType {
3
3
  PER_STAY = "Per stay",
4
4
  PER_NIGHT = "Per night",
5
5
  PER_PERSON = "Per person",
@@ -12,7 +12,23 @@ export declare enum AddonPricingType {
12
12
  PER_ADULT_OCCUPANCY_PER_NIGHT = "Per Adult Occupancy Per Night",
13
13
  PER_CHILD_OCCUPANCY_PER_NIGHT = "Per Child Occupancy Per Night"
14
14
  }
15
- export declare const ADDON_PER_NIGHT_TYPES: AddonPricingType[];
15
+ export type IAddonPriceDetails = {
16
+ adultPrice: number;
17
+ childPrice: number;
18
+ price: number;
19
+ adultFee: number;
20
+ childFee: number;
21
+ fee: number;
22
+ adultFees?: IAddonPriceDetailsFee[];
23
+ childFees?: IAddonPriceDetailsFee[];
24
+ fees?: IAddonPriceDetailsFee[];
25
+ discount?: number;
26
+ pricingType: EAddonPricingType;
27
+ };
28
+ export type IAddonPriceDetailsFee = {
29
+ name: string;
30
+ amount: number;
31
+ };
16
32
  export type BasketAddonDTO = {
17
33
  availability: any;
18
34
  code: string;
@@ -34,5 +50,7 @@ export type BasketAddonDTO = {
34
50
  fees?: SimpleItemisedFee[];
35
51
  adultFees?: SimpleItemisedFee[];
36
52
  childFees?: SimpleItemisedFee[];
53
+ discount?: number;
37
54
  nights?: number;
38
55
  };
56
+ //# sourceMappingURL=Addon.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Addon.types.d.ts","sourceRoot":"","sources":["../../../../src/types/Addons/Addon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,oBAAY,iBAAiB;IAC3B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,oBAAoB,yBAAyB;IAE7C,eAAe,oBAAoB;IACnC,yBAAyB,8BAA8B;IAGvD,2BAA2B,gCAAgC;IAC3D,2BAA2B,gCAAgC;IAC3D,8BAA8B,mCAAmC;IACjE,6BAA6B,kCAAkC;IAC/D,6BAA6B,kCAAkC;CAChE;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IACjB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revenue: number;
4
+ purchases: number;
5
+ sessionCount?: number;
6
+ userCount: number;
7
+ };
8
+ export type IDailyRoomBreakdown = {
9
+ date: string;
10
+ roomName: string;
11
+ purchases: number;
12
+ };
13
+ export type IRegionBreakdown = {
14
+ country: string;
15
+ region: string;
16
+ purchases: number;
17
+ revenue: number;
18
+ };
19
+ export type ICheckoutFunnel = {
20
+ roomName: string;
21
+ selectedDate: number;
22
+ addedToCart: number;
23
+ startedCheckout: number;
24
+ completedCheckout: number;
25
+ };
26
+ export type IBigQueryResults = {
27
+ purchases: number;
28
+ cancellations: number;
29
+ revenue: number;
30
+ sessionCount?: number;
31
+ userCount: number;
32
+ totalDateSelections: number;
33
+ dailyMetrics: IDailyMetrics[];
34
+ dailyRoomsBreakdown: IDailyRoomBreakdown[];
35
+ regionBreakdown: IRegionBreakdown[];
36
+ checkoutFunnel: ICheckoutFunnel[];
37
+ };
38
+ export interface IRoomstayAnalyticsResult {
39
+ bookings: number;
40
+ bookingsForConversion: number;
41
+ revenue: number;
42
+ cancellations: number;
43
+ regionBreakdown: IRegionBreakdown[];
44
+ dailyMetrics: IDailyMetrics[];
45
+ }
46
+ //# sourceMappingURL=IBigQueryResults.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IBigQueryResults.type.d.ts","sourceRoot":"","sources":["../../../../src/types/Analytics/IBigQueryResults.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C,eAAe,EAAE,gBAAgB,EAAE,CAAC;IACpC,cAAc,EAAE,eAAe,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,gBAAgB,EAAE,CAAC;IACpC,YAAY,EAAE,aAAa,EAAE,CAAC;CACjC"}
@@ -0,0 +1,65 @@
1
+ import { IRoomstayEventData } from './IRoomstayEventData.type';
2
+ /**
3
+ * Roomstay event names
4
+ */
5
+ export declare enum ERoomstayEventName {
6
+ BasketAdd = "Basket/Add",
7
+ ViewCheckout = "View/Checkout",
8
+ BookingCommitted = "Booking/Committed"
9
+ }
10
+ /**
11
+ * Meta custom_data format
12
+ */
13
+ export interface IMetaEventData {
14
+ currency: string;
15
+ value: number;
16
+ content_ids?: string[];
17
+ content_type?: string;
18
+ contents?: Array<{
19
+ id: string;
20
+ quantity: number;
21
+ item_price: number;
22
+ }>;
23
+ num_items?: number;
24
+ }
25
+ /**
26
+ * Meta user data format
27
+ */
28
+ export interface IMetaUserData {
29
+ em?: string;
30
+ ph?: string;
31
+ fn?: string;
32
+ ln?: string;
33
+ ct?: string;
34
+ st?: string;
35
+ zp?: string;
36
+ country?: string;
37
+ external_id?: string;
38
+ }
39
+ /**
40
+ * Analytics event request payload
41
+ */
42
+ export interface IAnalyticsEventRequest {
43
+ eventId: string;
44
+ sessionId: string;
45
+ eventName: ERoomstayEventName;
46
+ eventTime: number;
47
+ hotelFrontendId: string;
48
+ fbc?: string;
49
+ fbp?: string;
50
+ eventData: IRoomstayEventData;
51
+ }
52
+ /**
53
+ * Analytics event stored in DynamoDB
54
+ */
55
+ export interface IAnalyticsEvent {
56
+ eventId: string;
57
+ sessionId: string;
58
+ hotelFrontendId: string;
59
+ eventName: ERoomstayEventName;
60
+ eventTime: number;
61
+ eventData: IRoomstayEventData;
62
+ createdAt: number;
63
+ ttl: number;
64
+ }
65
+ //# sourceMappingURL=IAnalyticsEvent.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAnalyticsEvent.type.d.ts","sourceRoot":"","sources":["../../../../src/types/AnalyticsEvents/IAnalyticsEvent.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;GAEG;AACH,oBAAY,kBAAkB;IAC1B,SAAS,eAAe;IACxB,YAAY,kBAAkB;IAC9B,gBAAgB,sBAAsB;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,kBAAkB,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,21 @@
1
+ export interface IAnalyticsSession {
2
+ sessionId: string;
3
+ hotelFrontendId: string;
4
+ fbc?: string;
5
+ fbp?: string;
6
+ externalId?: string;
7
+ userAgent?: string;
8
+ ipAddress?: string;
9
+ createdAt: number;
10
+ ttl: number;
11
+ }
12
+ /**
13
+ * Request payload for creating a new analytics session
14
+ */
15
+ export interface IAnalyticsSessionRequest {
16
+ sessionId: string;
17
+ hotelFrontendId: string | number;
18
+ fbc?: string;
19
+ fbp?: string;
20
+ }
21
+ //# sourceMappingURL=IAnalyticsSession.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAnalyticsSession.type.d.ts","sourceRoot":"","sources":["../../../../src/types/AnalyticsEvents/IAnalyticsSession.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Roomstay Analytics Event Data Types
3
+ */
4
+ /**
5
+ * Serialized representation of a BasketRow for analytics events.
6
+ */
7
+ export interface IRoomstayBasketItem {
8
+ roomCode: string;
9
+ roomId?: number;
10
+ roomName?: string;
11
+ rateCode: string;
12
+ rateName?: string;
13
+ startDate: string;
14
+ endDate: string;
15
+ numberOfNights: number;
16
+ adults: number;
17
+ children: number;
18
+ infants: number;
19
+ totalPrice: number;
20
+ averageNightlyRate: number;
21
+ promoCode?: string;
22
+ }
23
+ /**
24
+ * Guest/user information for analytics events.
25
+ * Used for Booking/Committed events where we have guest details.
26
+ */
27
+ export interface IRoomstayGuestData {
28
+ email?: string;
29
+ phone?: string;
30
+ firstName?: string;
31
+ lastName?: string;
32
+ city?: string;
33
+ state?: string;
34
+ postalCode?: string;
35
+ country?: string;
36
+ externalId?: string;
37
+ }
38
+ /**
39
+ * Event data for Basket/Add event
40
+ */
41
+ export interface IRoomstayBasketAddEventData {
42
+ item: IRoomstayBasketItem;
43
+ currency: string;
44
+ }
45
+ /**
46
+ * Event data for View/Checkout event
47
+ */
48
+ export interface IRoomstayCheckoutViewEventData {
49
+ items: IRoomstayBasketItem[];
50
+ currency: string;
51
+ totalValue: number;
52
+ }
53
+ /**
54
+ * Event data for Booking/Committed event
55
+ */
56
+ export interface IRoomstayBookingCommittedEventData {
57
+ items: IRoomstayBasketItem[];
58
+ currency: string;
59
+ totalValue: number;
60
+ roomstayId: string;
61
+ itineraryNumber: string;
62
+ reservationNumbers: string[];
63
+ guest: IRoomstayGuestData;
64
+ }
65
+ export type IRoomstayEventData = IRoomstayBasketAddEventData | IRoomstayCheckoutViewEventData | IRoomstayBookingCommittedEventData;
66
+ //# sourceMappingURL=IRoomstayEventData.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRoomstayEventData.type.d.ts","sourceRoot":"","sources":["../../../../src/types/AnalyticsEvents/IRoomstayEventData.type.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,E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client-side (for Meta Pixel) and server-side (for Meta CAPI).
6
+ */
7
+ import { ERoomstayEventName, IMetaEventData, IMetaUserData } from './IAnalyticsEvent.type';
8
+ import { IRoomstayEventData, IRoomstayGuestData } from './IRoomstayEventData.type';
9
+ /**
10
+ * Maps Roomstay event names to Meta CAPI event names
11
+ */
12
+ export declare function toMetaEventName(eventName: ERoomstayEventName): string;
13
+ /**
14
+ * Transform roomstay event to Meta pixel/CAPI event.
15
+ * Note: ViewBookingEngine events should not be transformed - they are for session init only.
16
+ */
17
+ export declare function transformToMetaEventData(eventData: IRoomstayEventData): IMetaEventData;
18
+ /**
19
+ * Transform guest data to Meta user_data format.
20
+ */
21
+ export declare function transformToMetaUserData(guest: IRoomstayGuestData): IMetaUserData;
22
+ //# sourceMappingURL=MetaCapiTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetaCapiTransformer.d.ts","sourceRoot":"","sources":["../../../../src/types/AnalyticsEvents/MetaCapiTransformer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAuB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAExG;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,kBAAkB,GAAG,MAAM,CAOrE;AAiCD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,kBAAkB,GAAG,cAAc,CAYtF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,kBAAkB,GAAG,aAAa,CAYhF"}
@@ -1,37 +1,14 @@
1
- import { EBookingPaymentMethod } from "types/Booking/IBookingPayment.type";
2
- import { SimpleItemisedFee } from "types/Fees/IFee.type";
3
- import { RoomNightRateDTO } from "./RoomNightRateDTO";
1
+ import { EBookingPaymentMethod, IPaymentCheckoutDetails } from '../Booking/IBookingPayment.type';
2
+ import { SimpleItemisedFee } from '../Fees/IFee.type';
3
+ import { RoomNightRateDTO } from './RoomNightRate.type';
4
4
  export type ReservationsDTO = {
5
5
  roomstayId: string;
6
6
  reservations: ReservationDTO[];
7
7
  itineraryNumber: string;
8
8
  hotelFrontendId?: string;
9
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
- };
10
+ total?: ReservationDTO['total'];
11
+ payment?: IPaymentCheckoutDetails;
35
12
  itemisedFees?: SimpleItemisedFee[];
36
13
  feesSummary?: SimpleItemisedFee[];
37
14
  };
@@ -53,6 +30,8 @@ export type ReservationAddonDTO = {
53
30
  adultPrice?: number;
54
31
  childPrice?: number;
55
32
  nights?: number;
33
+ discount?: number;
34
+ total?: number;
56
35
  };
57
36
  export type ReservationDTO = {
58
37
  nights: {
@@ -67,6 +46,8 @@ export type ReservationDTO = {
67
46
  line1: string;
68
47
  city: string;
69
48
  postalCode: string;
49
+ state?: string;
50
+ country?: string;
70
51
  };
71
52
  firstName: string;
72
53
  lastName: string;
@@ -99,4 +80,6 @@ export type ReservationDTO = {
99
80
  afterTax: number;
100
81
  beforeFees?: number;
101
82
  };
83
+ fees?: number;
102
84
  };
85
+ //# sourceMappingURL=Reservations.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reservations.type.d.ts","sourceRoot":"","sources":["../../../../src/types/Api/Reservations.type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;A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AC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -5,3 +5,4 @@ export type RoomNightRateDTO = {
5
5
  total: string;
6
6
  discount: string;
7
7
  };
8
+ //# sourceMappingURL=RoomNightRate.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoomNightRate.type.d.ts","sourceRoot":"","sources":["../../../../src/types/Api/RoomNightRate.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,122 @@
1
+ import { Warning } from '../../index.js';
2
+ import { IItemisedBookingFeeResponse } from '../Booking/Itinerary.types';
3
+ import { EGuaranteePolicyDepositMode } from '../Policies/EGuaranteePolicy.enum';
4
+ import { EPromoCodeDiscountType } from '../PromoCode/EPromoCodeDiscountType.enum';
5
+ export type IAvailability = {
6
+ roomTypes: {
7
+ [roomTypeCode: string]: IRoomType;
8
+ };
9
+ ratePlans: {
10
+ [ratePlanCode: string]: IRatePlan;
11
+ };
12
+ roomNights: {
13
+ [date: string]: {
14
+ [roomTypeCode: string]: IRoomNight;
15
+ };
16
+ };
17
+ /** @deprecated */
18
+ guaranteePolicies: {
19
+ [policyCode: string]: string;
20
+ };
21
+ guaranteePolicyDetails?: {
22
+ [policyCode: string]: IAvailabilityGuaranteePolicyDetails;
23
+ };
24
+ cancelPolicies: {
25
+ [policyCode: string]: string;
26
+ };
27
+ warnings: Warning<string>[];
28
+ alternativeAvailability?: IAlternativeAvailability;
29
+ promoCodeDetails?: IPromoCodeDetails | null;
30
+ hasMinStayUpsellOpportunities?: boolean;
31
+ };
32
+ export type IAlternativeAvailability = {
33
+ checkInDate: string;
34
+ checkOutDate: string;
35
+ availability: IAvailability;
36
+ };
37
+ export type IAvailabilityGuaranteePolicyDetails = {
38
+ code: string;
39
+ name: string;
40
+ longDescription: string;
41
+ depositMode: EGuaranteePolicyDepositMode;
42
+ depositPercentage?: number;
43
+ hide: boolean;
44
+ };
45
+ export type IRoomType = {
46
+ name: string;
47
+ shortDescription: string;
48
+ longDescription: string;
49
+ imageUrls: string[];
50
+ occupancy: number;
51
+ roomGroupId?: string | null;
52
+ auxiliaryValues?: {
53
+ [auxiliaryFilterId: string]: string[];
54
+ };
55
+ order: number;
56
+ doNotUpsell: boolean;
57
+ };
58
+ export type IRatePlan = {
59
+ name: string;
60
+ description: string;
61
+ longDescription?: string | null;
62
+ guaranteeCode: string;
63
+ cancelPolicyCode: string;
64
+ promoCode?: string | null;
65
+ promoCodeName?: string | null;
66
+ mealsIncluded: {
67
+ breakfast: boolean;
68
+ lunch: boolean;
69
+ dinner: boolean;
70
+ mealPlan: string | undefined;
71
+ };
72
+ rateOverrides: IRateOverride[];
73
+ nightsToDiscount?: number | null;
74
+ minNightStayOverride?: number | null;
75
+ isUpsellRate?: boolean;
76
+ isMemberOnly?: boolean;
77
+ artificialDiscountPercent: number | null;
78
+ artificialDiscountAmount: number | null;
79
+ freeChildrenIncluded: number;
80
+ };
81
+ export type IPromoCodeDetails = {
82
+ code: string;
83
+ oneTimeUseOnly: boolean;
84
+ discountType: EPromoCodeDiscountType;
85
+ discountAmount: number;
86
+ applyToAddons: boolean;
87
+ };
88
+ export type IRoomNight = {
89
+ available: number;
90
+ lowestPrice: number;
91
+ rates: {
92
+ [ratePlanCode: string]: IRoomNightRatePlan;
93
+ };
94
+ };
95
+ export type IRoomNightRatePlan = {
96
+ cost: number;
97
+ discount: number;
98
+ tax: number;
99
+ fee: number;
100
+ total: number;
101
+ fees?: IItemisedBookingFeeResponse[];
102
+ };
103
+ export type IRateOverride = {
104
+ name: string;
105
+ shortDescription: string;
106
+ longDescription: string;
107
+ enabledPerDay: IRateLabelsByDay | null;
108
+ startDate: string;
109
+ endDate: string | null;
110
+ queryStartDate: string | null;
111
+ queryEndDate: string | null;
112
+ };
113
+ export type IRateLabelsByDay = {
114
+ Monday: boolean;
115
+ Tuesday: boolean;
116
+ Wednesday: boolean;
117
+ Thursday: boolean;
118
+ Friday: boolean;
119
+ Saturday: boolean;
120
+ Sunday: boolean;
121
+ };
122
+ //# sourceMappingURL=Availability.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Availability.types.d.ts","sourceRoot":"","sources":["../../../../src/types/Availability/Availability.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACjD,SAAS,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACjD,UAAU,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG;YAAE,CAAC,YAAY,EAAE,MAAM,GAAG,UAAU,CAAA;SAAE,CAAA;KAAE,CAAC;IACvE,kBAAkB;IAClB,iBAAiB,EAAE;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpD,sBAAsB,CAAC,EAAE;QACrB,CAAC,UAAU,EAAE,MAAM,GAAG,mCAAmC,CAAC;KAC7D,CAAC;IACF,cAAc,EAAE;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IAC5B,uBAAuB,CAAC,EAAE,wBAAwB,CAAC;IACnD,gBAAgB,CAAC,EAAE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AAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { IRoomstayMemberJWTData } from '../Member/IRoomstayMemberJWTData.type';
2
+ import { ICommonQueryParameters } from './ICommonQueryParameters.type';
3
+ import { ItineraryResponse } from './Itinerary.types';
4
+ export type IConfirmBookingRequest = {
5
+ reservationIds: string[];
6
+ itineraryId: string;
7
+ planpayCheckoutId?: string;
8
+ paymentId?: string;
9
+ roomstayId?: string;
10
+ frontendMember?: IRoomstayMemberJWTData;
11
+ source?: 'External' | 'Frontend' | 'Admin';
12
+ isBlocking?: boolean;
13
+ } & ICommonQueryParameters;
14
+ export type IConfirmBookingResponse = ItineraryResponse;
15
+ export type ICancelBookingRequest = {
16
+ email?: string;
17
+ reservationId: string;
18
+ frontendMember?: IRoomstayMemberJWTData;
19
+ companyUserId?: number;
20
+ cancellationReason?: string;
21
+ } & ICommonQueryParameters;
22
+ //# sourceMappingURL=ConfirmBooking.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmBooking.types.d.ts","sourceRoot":"","sources":["../../../../src/types/Booking/ConfirmBooking.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG;IACjC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IAEpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,sBAAsB,CAAC;AAE3B,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,sBAAsB,CAAC;IAExC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare enum EBookingStatus {
2
+ Pending = "Pending",
3
+ Processing = "Processing",
4
+ Committed = "Committed",
5
+ Cancelled = "Cancelled",
6
+ Reverted = "Reverted"
7
+ }
8
+ export declare enum EBookingFlow {
9
+ Default = "Default",
10
+ PreCheckoutPencil = "PreCheckoutPencil",
11
+ PostCheckoutPencil = "PostCheckoutPencil"
12
+ }
13
+ //# sourceMappingURL=EBooking.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EBooking.types.d.ts","sourceRoot":"","sources":["../../../../src/types/Booking/EBooking.types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACtB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;CACxB;AAED,oBAAY,YAAY;IACpB,OAAO,YAAY;IACnB,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;CAC5C"}