@roomstay/core 0.2.0-0 → 0.2.0-10

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 (225) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/node.js +1 -0
  3. package/dist/node.js.LICENSE.txt +7 -0
  4. package/dist/types/Addon/Addon.enum.d.ts +14 -0
  5. package/dist/types/Addon/Addon.type.d.ts +24 -0
  6. package/dist/types/{types/Addons → Addons}/Addon.enum.d.ts +0 -1
  7. package/dist/types/{types/Addons → Addons}/Addon.types.d.ts +0 -1
  8. package/dist/types/Analytics/IAnalyticsEvent.type.d.ts +35 -0
  9. package/dist/types/Analytics/IAnalyticsSession.type.d.ts +11 -0
  10. package/dist/types/Analytics/IBigQueryResponse.type.d.ts +24 -0
  11. package/dist/types/{types/Analytics → Analytics}/IBigQueryResults.type.d.ts +0 -1
  12. package/dist/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts +90 -0
  13. package/dist/types/{types/AnalyticsEvents → AnalyticsEvents}/IAnalyticsSession.type.d.ts +0 -1
  14. package/dist/types/{types/AnalyticsEvents → AnalyticsEvents}/IRoomstayEventData.type.d.ts +27 -3
  15. package/dist/types/{types/AnalyticsEvents → AnalyticsEvents}/MetaCapiTransformer.d.ts +6 -3
  16. package/dist/types/{types/Api → Api}/Reservations.type.d.ts +1 -1
  17. package/dist/types/{types/Api → Api}/RoomNightRate.type.d.ts +0 -1
  18. package/dist/types/{types/Availability → Availability}/Availability.types.d.ts +1 -2
  19. package/dist/types/{types/Booking → Booking}/ConfirmBooking.types.d.ts +0 -1
  20. package/dist/types/{types/Booking → Booking}/EBooking.types.d.ts +0 -1
  21. package/dist/types/{types/Booking → Booking}/GetBooking.types.d.ts +0 -1
  22. package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +11 -0
  23. package/dist/types/{types/Booking → Booking}/IBookingCreateErrorResponse.type.d.ts +0 -1
  24. package/dist/types/Booking/IBookingExtraFields.type.d.ts +19 -0
  25. package/dist/types/{types/Booking → Booking}/IBookingPayment.type.d.ts +13 -1
  26. package/dist/types/{types/Booking → Booking}/IBookingQuote.type.d.ts +0 -1
  27. package/dist/types/Booking/IBookingStatus.type.d.ts +5 -0
  28. package/dist/types/{types/Booking → Booking}/ICommonQueryParameters.type.d.ts +0 -1
  29. package/dist/types/Booking/IPrice.type.d.ts +7 -0
  30. package/dist/types/Booking/ISplitPayment.type.d.ts +89 -0
  31. package/dist/types/{types/Booking → Booking}/Itinerary.types.d.ts +1 -1
  32. package/dist/types/{types/Booking → Booking}/PencilReservation.types.d.ts +0 -1
  33. package/dist/types/{types/Booking → Booking}/PlaceBooking.types.d.ts +3 -3
  34. package/dist/types/{types/Company → Company}/ECompanyProvider.enum.d.ts +2 -2
  35. package/dist/types/{types/Company → Company}/IAdminCompany.type.d.ts +7 -2
  36. package/dist/types/{types/Company → Company}/IAdminCompanyUser.type.d.ts +0 -1
  37. package/dist/types/DisplayPolicy/EDisplayPolicyRuleType.enum.d.ts +6 -0
  38. package/dist/types/DisplayPolicy/IDisplayPolicy.type.d.ts +42 -0
  39. package/dist/types/{types/Events → Events}/ERoomstayEventSource.enum.d.ts +0 -1
  40. package/dist/types/{types/Events → Events}/IRoomstayEvent.type.d.ts +0 -1
  41. package/dist/types/{types/Fees → Fees}/EFeeType.enum.d.ts +0 -1
  42. package/dist/types/{types/Fees → Fees}/IFee.type.d.ts +0 -1
  43. package/dist/types/{types/Fees → Fees}/IFeeConfigurationOptions.type.d.ts +0 -1
  44. package/dist/types/Fees/IFeeOptions.type.d.ts +6 -0
  45. package/dist/types/{types/General → General}/Format.types.d.ts +0 -1
  46. package/dist/types/{types/General → General}/HttpMethod.enum.d.ts +0 -1
  47. package/dist/types/{types/General → General}/IMessage.type.d.ts +0 -1
  48. package/dist/types/{types/General → General}/Pagination.types.d.ts +0 -1
  49. package/dist/types/{types/General → General}/Warning.type.d.ts +0 -1
  50. package/dist/types/{types/GiftCards → GiftCards}/GiftCard.types.d.ts +9 -1
  51. package/dist/types/{types/GiftCards → GiftCards}/GiftCardAuth.types.d.ts +0 -1
  52. package/dist/types/{types/GiftCards → GiftCards}/GiftCardLogs.enum.d.ts +0 -1
  53. package/dist/types/{types/Hotel → Hotel}/EHotelAddressRequirement.enum.d.ts +0 -1
  54. package/dist/types/{types/Hotel → Hotel}/EHotelPriceModel.enum.d.ts +0 -1
  55. package/dist/types/{types/Hotel → Hotel}/EHotelStateFieldConfiguration.enum.d.ts +0 -1
  56. package/dist/types/{types/Hotel → Hotel}/EHotelWeekdayStartsOn.enum.d.ts +0 -1
  57. package/dist/types/{types/Hotel → Hotel}/EIntegration.enum.d.ts +2 -2
  58. package/dist/types/{types/Hotel → Hotel}/IAuxiliaryFilter.type.d.ts +0 -1
  59. package/dist/types/{types/Hotel → Hotel}/IHotelColorScheme.type.d.ts +0 -1
  60. package/dist/types/{types/Hotel → Hotel}/IHotelOverrides.type.d.ts +0 -1
  61. package/dist/types/{types/Hotel → Hotel}/IHotelReplica.type.d.ts +1 -2
  62. package/dist/types/{types/Hotel → Hotel}/IHotelService.type.d.ts +0 -1
  63. package/dist/types/{types/Image → Image}/IRoomstayImage.type.d.ts +0 -1
  64. package/dist/types/{types/Maintenance → Maintenance}/IMaintenanceStatus.type.d.ts +4 -2
  65. package/dist/types/{types/Media → Media}/IMedia.type.d.ts +0 -1
  66. package/dist/types/Member/EMembershipProvider.type.d.ts +10 -0
  67. package/dist/types/{types/Member → Member}/IMember.type.d.ts +0 -1
  68. package/dist/types/{types/Member → Member}/IMemberVerification.type.d.ts +3 -1
  69. package/dist/types/{types/Member → Member}/IRoomstayCognitoMember.type.d.ts +0 -1
  70. package/dist/types/{types/Member → Member}/IRoomstayMember.type.d.ts +2 -2
  71. package/dist/types/{types/Member → Member}/IRoomstayMemberBooking.type.d.ts +1 -2
  72. package/dist/types/{types/Member → Member}/IRoomstayMemberBookingAddress.type.d.ts +0 -1
  73. package/dist/types/{types/Member → Member}/IRoomstayMemberBookingItem.type.d.ts +1 -2
  74. package/dist/types/{types/Member → Member}/IRoomstayMemberBookingProfile.type.d.ts +1 -2
  75. package/dist/types/{types/Member → Member}/IRoomstayMemberCards.type.d.ts +0 -1
  76. package/dist/types/{types/Member → Member}/IRoomstayMemberJWTData.type.d.ts +0 -1
  77. package/dist/types/Member/IRoomstayMemberLoyalty.type.d.ts +16 -0
  78. package/dist/types/{types/Member → Member}/ISession.type.d.ts +0 -1
  79. package/dist/types/Member/LoyaltyTiers.d.ts +6 -0
  80. package/dist/types/Metasearch/IMetasearchDailyRow.type.d.ts +8 -0
  81. package/dist/types/Newbook/ENewbookDiscountType.enum.d.ts +5 -0
  82. package/dist/types/Newbook/ENewbookRegion.enum.d.ts +7 -0
  83. package/dist/types/Newbook/ENewbookSiteSelectionFeeType.enum.d.ts +4 -0
  84. package/dist/types/Newbook/ENewbookSiteSelectionType.enum.d.ts +6 -0
  85. package/dist/types/Newbook/ENewbookSyncStrategy.enum.d.ts +11 -0
  86. package/dist/types/Newbook/ENewbookSyncType.enum.d.ts +3 -0
  87. package/dist/types/Newbook/INewbookDiscount.type.d.ts +9 -0
  88. package/dist/types/Newbook/INewbookInventoryItem.type.d.ts +9 -0
  89. package/dist/types/Newbook/INewbookSyncResponse.type.d.ts +9 -0
  90. package/dist/types/Newbook/index.d.ts +5 -0
  91. package/dist/types/{types/OHIP → OHIP}/IOHIPConfiguration.types.d.ts +0 -1
  92. package/dist/types/{types/OHIP → OHIP}/index.d.ts +0 -1
  93. package/dist/types/PMS/EPMSSyncStatus.enum.d.ts +8 -0
  94. package/dist/types/PMS/IPMSSyncResponse.type.d.ts +10 -0
  95. package/dist/types/PMS/index.d.ts +2 -0
  96. package/dist/types/PMSSync/EPMSSyncStatus.enum.d.ts +8 -0
  97. package/dist/types/PMSSync/IPMSSyncResponse.type.d.ts +10 -0
  98. package/dist/types/PMSSync/index.d.ts +17 -0
  99. package/dist/types/{types/Package → Package}/Package.types.d.ts +0 -1
  100. package/dist/types/{types/Policies → Policies}/EGuaranteePolicy.enum.d.ts +5 -1
  101. package/dist/types/{types/PromoCode → PromoCode}/EPromoCodeDiscountType.enum.d.ts +2 -2
  102. package/dist/types/{types/PromoCode → PromoCode}/PromoCodeStayDateRangeType.enum.d.ts +0 -1
  103. package/dist/types/{types/RMS → RMS}/ERMSAuthSyncHistoryStatus.type.d.ts +0 -1
  104. package/dist/types/{types/RMS → RMS}/ERMSDiscountType.enum.d.ts +0 -1
  105. package/dist/types/{types/RMS → RMS}/ERMSSyncStrategy.enum.d.ts +1 -1
  106. package/dist/types/{types/RMS → RMS}/IRMSPropertyDiscount.type.d.ts +0 -1
  107. package/dist/types/{types/RMS → RMS}/IRMSRequirement.type.d.ts +0 -1
  108. package/dist/types/{types/RMS → RMS}/IRMSSyncResponse.type.d.ts +0 -1
  109. package/dist/types/{types/RMS → RMS}/RMSBookingSource.type.d.ts +0 -1
  110. package/dist/types/RMS/RMSGuestDTO.type.d.ts +50 -0
  111. package/dist/types/{types/Room → Room}/IRoomGroup.type.d.ts +0 -1
  112. package/dist/types/index.d.ts +166 -3
  113. package/dist/{types/utils → utils}/TotalCalculator.d.ts +0 -1
  114. package/dist/{types/utils → utils}/bookingTotal.d.ts +1 -2
  115. package/dist/{types/utils → utils}/calculateFee.d.ts +1 -2
  116. package/dist/utils/feeOptionRules.d.ts +0 -0
  117. package/dist/{types/utils → utils}/feeTypes.d.ts +1 -2
  118. package/dist/{types/utils → utils}/index.d.ts +0 -1
  119. package/dist/{types/utils → utils}/reflection.d.ts +0 -1
  120. package/dist/{types/utils → utils}/roomstayImageResize.d.ts +1 -2
  121. package/dist/utils/roundMoney.d.ts +20 -0
  122. package/dist/{types/utils → utils}/typeUtils.d.ts +0 -1
  123. package/dist/{types/utils → utils}/uppercaseString.d.ts +0 -1
  124. package/dist/{types/utils → utils}/zodUtils.d.ts +0 -1
  125. package/dist/web.js +1 -0
  126. package/dist/web.js.LICENSE.txt +7 -0
  127. package/package.json +11 -15
  128. package/dist/browser/index.js +0 -3901
  129. package/dist/browser/index.js.map +0 -1
  130. package/dist/node/index.cjs +0 -25
  131. package/dist/node/index.cjs.map +0 -1
  132. package/dist/node/index.mjs +0 -3901
  133. package/dist/node/index.mjs.map +0 -1
  134. package/dist/types/index.d.ts.map +0 -1
  135. package/dist/types/types/Addons/Addon.enum.d.ts.map +0 -1
  136. package/dist/types/types/Addons/Addon.types.d.ts.map +0 -1
  137. package/dist/types/types/Analytics/IBigQueryResults.type.d.ts.map +0 -1
  138. package/dist/types/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts +0 -65
  139. package/dist/types/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts.map +0 -1
  140. package/dist/types/types/AnalyticsEvents/IAnalyticsSession.type.d.ts.map +0 -1
  141. package/dist/types/types/AnalyticsEvents/IRoomstayEventData.type.d.ts.map +0 -1
  142. package/dist/types/types/AnalyticsEvents/MetaCapiTransformer.d.ts.map +0 -1
  143. package/dist/types/types/Api/Reservations.type.d.ts.map +0 -1
  144. package/dist/types/types/Api/RoomNightRate.type.d.ts.map +0 -1
  145. package/dist/types/types/Availability/Availability.types.d.ts.map +0 -1
  146. package/dist/types/types/Booking/ConfirmBooking.types.d.ts.map +0 -1
  147. package/dist/types/types/Booking/EBooking.types.d.ts.map +0 -1
  148. package/dist/types/types/Booking/GetBooking.types.d.ts.map +0 -1
  149. package/dist/types/types/Booking/IBookingCreateErrorResponse.type.d.ts.map +0 -1
  150. package/dist/types/types/Booking/IBookingExtraFields.type.d.ts +0 -6
  151. package/dist/types/types/Booking/IBookingExtraFields.type.d.ts.map +0 -1
  152. package/dist/types/types/Booking/IBookingPayment.type.d.ts.map +0 -1
  153. package/dist/types/types/Booking/IBookingQuote.type.d.ts.map +0 -1
  154. package/dist/types/types/Booking/ICommonQueryParameters.type.d.ts.map +0 -1
  155. package/dist/types/types/Booking/Itinerary.types.d.ts.map +0 -1
  156. package/dist/types/types/Booking/PencilReservation.types.d.ts.map +0 -1
  157. package/dist/types/types/Booking/PlaceBooking.types.d.ts.map +0 -1
  158. package/dist/types/types/Company/ECompanyProvider.enum.d.ts.map +0 -1
  159. package/dist/types/types/Company/IAdminCompany.type.d.ts.map +0 -1
  160. package/dist/types/types/Company/IAdminCompanyUser.type.d.ts.map +0 -1
  161. package/dist/types/types/Events/ERoomstayEventSource.enum.d.ts.map +0 -1
  162. package/dist/types/types/Events/IRoomstayEvent.type.d.ts.map +0 -1
  163. package/dist/types/types/Fees/EFeeType.enum.d.ts.map +0 -1
  164. package/dist/types/types/Fees/IFee.type.d.ts.map +0 -1
  165. package/dist/types/types/Fees/IFeeConfigurationOptions.type.d.ts.map +0 -1
  166. package/dist/types/types/General/Format.types.d.ts.map +0 -1
  167. package/dist/types/types/General/HttpMethod.enum.d.ts.map +0 -1
  168. package/dist/types/types/General/IMessage.type.d.ts.map +0 -1
  169. package/dist/types/types/General/Pagination.types.d.ts.map +0 -1
  170. package/dist/types/types/General/Warning.type.d.ts.map +0 -1
  171. package/dist/types/types/GiftCards/GiftCard.types.d.ts.map +0 -1
  172. package/dist/types/types/GiftCards/GiftCardAuth.types.d.ts.map +0 -1
  173. package/dist/types/types/GiftCards/GiftCardLogs.enum.d.ts.map +0 -1
  174. package/dist/types/types/Hotel/EHotelAddressRequirement.enum.d.ts.map +0 -1
  175. package/dist/types/types/Hotel/EHotelPriceModel.enum.d.ts.map +0 -1
  176. package/dist/types/types/Hotel/EHotelStateFieldConfiguration.enum.d.ts.map +0 -1
  177. package/dist/types/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts.map +0 -1
  178. package/dist/types/types/Hotel/EIntegration.enum.d.ts.map +0 -1
  179. package/dist/types/types/Hotel/IAuxiliaryFilter.type.d.ts.map +0 -1
  180. package/dist/types/types/Hotel/IHotelColorScheme.type.d.ts.map +0 -1
  181. package/dist/types/types/Hotel/IHotelOverrides.type.d.ts.map +0 -1
  182. package/dist/types/types/Hotel/IHotelReplica.type.d.ts.map +0 -1
  183. package/dist/types/types/Hotel/IHotelService.type.d.ts.map +0 -1
  184. package/dist/types/types/Image/IRoomstayImage.type.d.ts.map +0 -1
  185. package/dist/types/types/Maintenance/IMaintenanceStatus.type.d.ts.map +0 -1
  186. package/dist/types/types/Media/IMedia.type.d.ts.map +0 -1
  187. package/dist/types/types/Member/IMember.type.d.ts.map +0 -1
  188. package/dist/types/types/Member/IMemberVerification.type.d.ts.map +0 -1
  189. package/dist/types/types/Member/IRoomstayCognitoMember.type.d.ts.map +0 -1
  190. package/dist/types/types/Member/IRoomstayMember.type.d.ts.map +0 -1
  191. package/dist/types/types/Member/IRoomstayMemberBooking.type.d.ts.map +0 -1
  192. package/dist/types/types/Member/IRoomstayMemberBookingAddress.type.d.ts.map +0 -1
  193. package/dist/types/types/Member/IRoomstayMemberBookingItem.type.d.ts.map +0 -1
  194. package/dist/types/types/Member/IRoomstayMemberBookingProfile.type.d.ts.map +0 -1
  195. package/dist/types/types/Member/IRoomstayMemberCards.type.d.ts.map +0 -1
  196. package/dist/types/types/Member/IRoomstayMemberJWTData.type.d.ts.map +0 -1
  197. package/dist/types/types/Member/ISession.type.d.ts.map +0 -1
  198. package/dist/types/types/OHIP/IOHIPConfiguration.types.d.ts.map +0 -1
  199. package/dist/types/types/OHIP/index.d.ts.map +0 -1
  200. package/dist/types/types/Package/Package.types.d.ts.map +0 -1
  201. package/dist/types/types/Policies/EGuaranteePolicy.enum.d.ts.map +0 -1
  202. package/dist/types/types/PromoCode/EPromoCodeDiscountType.enum.d.ts.map +0 -1
  203. package/dist/types/types/PromoCode/PromoCodeStayDateRangeType.enum.d.ts.map +0 -1
  204. package/dist/types/types/RMS/ERMSAuthSyncHistoryStatus.type.d.ts.map +0 -1
  205. package/dist/types/types/RMS/ERMSDiscountType.enum.d.ts.map +0 -1
  206. package/dist/types/types/RMS/ERMSSyncStrategy.enum.d.ts.map +0 -1
  207. package/dist/types/types/RMS/IRMSPropertyDiscount.type.d.ts.map +0 -1
  208. package/dist/types/types/RMS/IRMSRequirement.type.d.ts.map +0 -1
  209. package/dist/types/types/RMS/IRMSSyncResponse.type.d.ts.map +0 -1
  210. package/dist/types/types/RMS/RMSBookingSource.type.d.ts.map +0 -1
  211. package/dist/types/types/Room/IRoomGroup.type.d.ts.map +0 -1
  212. package/dist/types/types/index.d.ts +0 -139
  213. package/dist/types/types/index.d.ts.map +0 -1
  214. package/dist/types/utils/TotalCalculator.d.ts.map +0 -1
  215. package/dist/types/utils/bookingTotal.d.ts.map +0 -1
  216. package/dist/types/utils/calculateFee.d.ts.map +0 -1
  217. package/dist/types/utils/feeTypes.d.ts.map +0 -1
  218. package/dist/types/utils/index.d.ts.map +0 -1
  219. package/dist/types/utils/reflection.d.ts.map +0 -1
  220. package/dist/types/utils/roomstayImageResize.d.ts.map +0 -1
  221. package/dist/types/utils/roundMoney.d.ts +0 -11
  222. package/dist/types/utils/roundMoney.d.ts.map +0 -1
  223. package/dist/types/utils/typeUtils.d.ts.map +0 -1
  224. package/dist/types/utils/uppercaseString.d.ts.map +0 -1
  225. package/dist/types/utils/zodUtils.d.ts.map +0 -1
@@ -0,0 +1,11 @@
1
+ export declare enum ENewbookSyncStrategy {
2
+ Rates = "rates",
3
+ Rooms = "rooms",
4
+ Availability = "availability",
5
+ Details = "details",
6
+ Tariffs = "tariffs",
7
+ Discounts = "discounts",
8
+ InventoryItems = "inventoryItems",
9
+ Sites = "sites",
10
+ SitesToAuxInputs = "sitesToAuxInputs"
11
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum ENewbookSyncType {
2
+ Rates = "rates"
3
+ }
@@ -0,0 +1,9 @@
1
+ import { ENewbookDiscountType } from './ENewbookDiscountType.enum';
2
+ export type INewbookDiscount = {
3
+ newbookId: number;
4
+ name: string;
5
+ active: boolean;
6
+ discountType: ENewbookDiscountType;
7
+ discountAmount: number;
8
+ requiresCode: boolean;
9
+ };
@@ -0,0 +1,9 @@
1
+ export type INewbookInventoryItem = {
2
+ newbookId: number;
3
+ name: string;
4
+ amount: number;
5
+ perAdult: number;
6
+ perChild: number;
7
+ dayType: string | null;
8
+ active: boolean;
9
+ };
@@ -0,0 +1,9 @@
1
+ import { EPMSSyncStatus } from '../PMS/EPMSSyncStatus.enum';
2
+ import { ENewbookSyncStrategy } from './ENewbookSyncStrategy.enum';
3
+ export interface INewbookSyncResponse {
4
+ id: number;
5
+ status: EPMSSyncStatus;
6
+ syncData: string | null;
7
+ syncType: ENewbookSyncStrategy;
8
+ additionalData?: any;
9
+ }
@@ -0,0 +1,5 @@
1
+ export * from './ENewbookDiscountType.enum';
2
+ export * from './ENewbookRegion.enum';
3
+ export * from './ENewbookSyncStrategy.enum';
4
+ export * from './INewbookDiscount.type';
5
+ export * from './INewbookInventoryItem.type';
@@ -10,4 +10,3 @@ export type IOHIPConfiguration = {
10
10
  interfaceKey?: string | null;
11
11
  interfaceId?: string | null;
12
12
  };
13
- //# sourceMappingURL=IOHIPConfiguration.types.d.ts.map
@@ -1,2 +1 @@
1
1
  export * from './IOHIPConfiguration.types';
2
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ export declare enum EPMSSyncStatus {
2
+ New = "new",
3
+ Queued = "queued",
4
+ InProgress = "in_progress",
5
+ Success = "success",
6
+ Failure = "failure",
7
+ RequireResume = "require_resume"
8
+ }
@@ -0,0 +1,10 @@
1
+ import { ECompanyProvider } from '../Company/ECompanyProvider.enum';
2
+ import { EPMSSyncStatus } from './EPMSSyncStatus.enum';
3
+ export interface IPMSSyncResponse {
4
+ id: number;
5
+ provider: ECompanyProvider;
6
+ status: EPMSSyncStatus;
7
+ syncData: string | null;
8
+ syncType: string;
9
+ additionalData?: any;
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './EPMSSyncStatus.enum';
2
+ export * from './IPMSSyncResponse.type';
@@ -0,0 +1,8 @@
1
+ export declare enum EPMSSyncStatus {
2
+ New = "new",
3
+ Queued = "queued",
4
+ InProgress = "in_progress",
5
+ Success = "success",
6
+ Failure = "failure",
7
+ RequireResume = "require_resume"
8
+ }
@@ -0,0 +1,10 @@
1
+ import { ECompanyProvider } from '../Company/ECompanyProvider.enum';
2
+ import { EPMSSyncStatus } from './EPMSSyncStatus.enum';
3
+ export interface IPMSSyncResponse {
4
+ id: number;
5
+ provider: ECompanyProvider;
6
+ status: EPMSSyncStatus;
7
+ syncData: string | null;
8
+ syncType: string;
9
+ additionalData?: any;
10
+ }
@@ -0,0 +1,17 @@
1
+ export * from './EPMSSyncStatus.enum';
2
+ export * from './IPMSSyncResponse.type';
3
+ export declare enum ERMSAuthSyncHistoryStatus {
4
+ Success = "success",
5
+ Failure = "failure",
6
+ New = "new",
7
+ Queued = "queued",
8
+ InProgress = "in_progress",
9
+ RequireResume = "require_resume"
10
+ }
11
+ export type IRMSSyncResponse = {
12
+ id: number;
13
+ status: ERMSAuthSyncHistoryStatus;
14
+ additionalData: any;
15
+ syncData: string | null;
16
+ syncType: string;
17
+ };
@@ -102,4 +102,3 @@ export type IGetPackagesRequest = {
102
102
  export type IGetPackagesResponse = {
103
103
  [packageName: string]: ReservedPackage;
104
104
  };
105
- //# sourceMappingURL=Package.types.d.ts.map
@@ -4,4 +4,8 @@ export declare enum EGuaranteePolicyDepositMode {
4
4
  FirstNight = "FirstNight",
5
5
  None = "None"
6
6
  }
7
- //# sourceMappingURL=EGuaranteePolicy.enum.d.ts.map
7
+ export declare enum EGuarantyPolicyPrepaymentType {
8
+ FixedAmount = "fixed",
9
+ Percentage = "percentage",
10
+ Nights = "nights"
11
+ }
@@ -1,6 +1,6 @@
1
1
  export declare enum EPromoCodeDiscountType {
2
2
  FlatPercent = "flatPercent",
3
3
  FlatQuantity = "flatQuantity",
4
- FlatQuantityPerStay = "flatQuantityPerStay"
4
+ FlatQuantityPerStay = "flatQuantityPerStay",
5
+ FixedNightlyRate = "fixedNightlyRate"
5
6
  }
6
- //# sourceMappingURL=EPromoCodeDiscountType.enum.d.ts.map
@@ -9,4 +9,3 @@ export declare enum EPromoCodeStayDateRangeRepeatType {
9
9
  MonthlyDate = "MonthlyDate",
10
10
  Yearly = "Yearly"
11
11
  }
12
- //# sourceMappingURL=PromoCodeStayDateRangeType.enum.d.ts.map
@@ -6,4 +6,3 @@ export declare enum ERMSAuthSyncHistoryStatus {
6
6
  InProgress = "in_progress",
7
7
  RequireResume = "require_resume"
8
8
  }
9
- //# sourceMappingURL=ERMSAuthSyncHistoryStatus.type.d.ts.map
@@ -4,4 +4,3 @@ export declare enum ERMSDiscountType {
4
4
  Bogo = "BOGO",
5
5
  NightlyRateOverride = "NightlyRateOverride"
6
6
  }
7
- //# sourceMappingURL=ERMSDiscountType.enum.d.ts.map
@@ -31,9 +31,9 @@ export declare enum ERMSSyncStrategy {
31
31
  ClientFacingPromoSync = "clientFacingPromoSync",
32
32
  ClientFacingRoomSync = "clientFacingRoomSync",
33
33
  ClientFacingRateSync = "clientFacingRateSync",
34
+ ClientFacingAreaSync = "clientFacingAreaSync",
34
35
  /**
35
36
  * Other sync strategies
36
37
  */
37
38
  NewRateFetch = "newRateFetch"
38
39
  }
39
- //# sourceMappingURL=ERMSSyncStrategy.enum.d.ts.map
@@ -31,4 +31,3 @@ export type IRMSPropertyDiscount = {
31
31
  maximumNightStay: number;
32
32
  availableToMembers: boolean;
33
33
  };
34
- //# sourceMappingURL=IRMSPropertyDiscount.type.d.ts.map
@@ -18,4 +18,3 @@ export type IRMSRequirement = {
18
18
  name: string;
19
19
  total: number;
20
20
  };
21
- //# sourceMappingURL=IRMSRequirement.type.d.ts.map
@@ -6,4 +6,3 @@ export type IRMSSyncResponse = {
6
6
  syncData: string | null;
7
7
  syncType: string;
8
8
  };
9
- //# sourceMappingURL=IRMSSyncResponse.type.d.ts.map
@@ -5,4 +5,3 @@ export type RMSBookingSourceType = {
5
5
  name: string;
6
6
  code: string;
7
7
  };
8
- //# sourceMappingURL=RMSBookingSource.type.d.ts.map
@@ -0,0 +1,50 @@
1
+ export type RMSGuestDTO = {
2
+ addressLine1: string;
3
+ addressLine2: string;
4
+ addressLine3: string;
5
+ birthday: string;
6
+ companyId: number;
7
+ countryId: number;
8
+ edmFilter1OptOut: boolean;
9
+ edmFilter2OptOut: boolean;
10
+ edmFilter3OptOut: boolean;
11
+ email: string;
12
+ email2: string;
13
+ emailOptOut: boolean;
14
+ guestAccountId: number;
15
+ languageSpokenId: number;
16
+ marketingOptOut: boolean;
17
+ mobile: string;
18
+ nationalityId: number;
19
+ notes: string;
20
+ phoneOptOut: boolean;
21
+ phoneAH: string;
22
+ postCode: string;
23
+ privacyOptIn: boolean;
24
+ smsOptOut: boolean;
25
+ passportId: string;
26
+ propertyId: number;
27
+ state: string;
28
+ town: string;
29
+ title: string;
30
+ userDefined1: string;
31
+ userDefined2: string;
32
+ userDefined3: string;
33
+ userDefined4: string;
34
+ userDefined5: string;
35
+ userDefined6: string;
36
+ userDefined7: string;
37
+ userDefined8: string;
38
+ userDefined9: string;
39
+ userDefined10: string;
40
+ userDefined11: string;
41
+ userDefined12: string;
42
+ userDefined13: boolean;
43
+ userDefined14: boolean;
44
+ userDefined15: string;
45
+ userDefined16: string;
46
+ id: number;
47
+ guestGiven: string;
48
+ guestSurname: string;
49
+ blackList: boolean;
50
+ };
@@ -16,4 +16,3 @@ export type IRoomGroup = {
16
16
  };
17
17
  deletedDate?: Date;
18
18
  };
19
- //# sourceMappingURL=IRoomGroup.type.d.ts.map
@@ -1,3 +1,166 @@
1
- export * from './types/index';
2
- export * from './utils/index';
3
- //# sourceMappingURL=index.d.ts.map
1
+ /**
2
+ * Availability
3
+ */
4
+ export * from './Availability/Availability.types';
5
+ /**
6
+ * Booking Details
7
+ */
8
+ export * from './Booking/ConfirmBooking.types';
9
+ export * from './Booking/EBooking.types';
10
+ export * from './Booking/GetBooking.types';
11
+ export * from './Booking/IBookingCreateErrorResponse.type';
12
+ export * from './Booking/IBookingExtraFields.type';
13
+ export * from './Booking/IBookingPayment.type';
14
+ export * from './Booking/IBookingQuote.type';
15
+ export * from './Booking/ICommonQueryParameters.type';
16
+ export * from './Booking/Itinerary.types';
17
+ export * from './Booking/PencilReservation.types';
18
+ export * from './Booking/PlaceBooking.types';
19
+ /**
20
+ * Company
21
+ */
22
+ export * from './Company/ECompanyProvider.enum';
23
+ export * from './Company/IAdminCompany.type';
24
+ export * from './Company/IAdminCompanyUser.type';
25
+ /**
26
+ * Hotel
27
+ */
28
+ export * from './Hotel/EHotelAddressRequirement.enum';
29
+ export * from './Hotel/EHotelPriceModel.enum';
30
+ export * from './Hotel/EHotelStateFieldConfiguration.enum';
31
+ export * from './Hotel/EHotelWeekdayStartsOn.enum';
32
+ export * from './Hotel/EIntegration.enum';
33
+ export * from './Hotel/IAuxiliaryFilter.type';
34
+ export * from './Hotel/IHotelColorScheme.type';
35
+ export * from './Hotel/IHotelOverrides.type';
36
+ export * from './Hotel/IHotelReplica.type';
37
+ export * from './Hotel/IHotelService.type';
38
+ /**
39
+ * Room
40
+ */
41
+ export * from './Room/IRoomGroup.type';
42
+ /**
43
+ * RMS
44
+ */
45
+ export * from './RMS/ERMSDiscountType.enum';
46
+ export * from './RMS/ERMSSyncStrategy.enum';
47
+ export * from './RMS/IRMSPropertyDiscount.type';
48
+ export * from './RMS/IRMSRequirement.type';
49
+ export * from './RMS/RMSBookingSource.type';
50
+ export * from './RMS/RMSGuestDTO.type';
51
+ /**
52
+ * Newbook
53
+ */
54
+ export * from './Newbook';
55
+ /**
56
+ * PMS Sync
57
+ */
58
+ export * from './PMSSync';
59
+ /**
60
+ * OHIP
61
+ */
62
+ export * from './OHIP/index';
63
+ /**
64
+ * Image
65
+ */
66
+ export * from './Image/IRoomstayImage.type';
67
+ /** Maintenance */
68
+ export * from './Maintenance/IMaintenanceStatus.type';
69
+ /**
70
+ * Member Details
71
+ */
72
+ export * from './Member/IMember.type';
73
+ export * from './Member/IMemberVerification.type';
74
+ export * from './Member/IRoomstayCognitoMember.type';
75
+ export * from './Member/IRoomstayMember.type';
76
+ export * from './Member/IRoomstayMemberBooking.type';
77
+ export * from './Member/IRoomstayMemberBookingAddress.type';
78
+ export * from './Member/IRoomstayMemberBookingItem.type';
79
+ export * from './Member/IRoomstayMemberBookingProfile.type';
80
+ export * from './Member/IRoomstayMemberCards.type';
81
+ export * from './Member/IRoomstayMemberJWTData.type';
82
+ export * from './Member/IRoomstayMemberLoyalty.type';
83
+ export * from './Member/ISession.type';
84
+ export * from './Member/EMembershipProvider.type';
85
+ /**
86
+ * Package
87
+ */
88
+ export * from './Package/Package.types';
89
+ /**
90
+ * Policies
91
+ */
92
+ export * from './Policies/EGuaranteePolicy.enum';
93
+ /**
94
+ * PromoCode
95
+ */
96
+ export * from './PromoCode/EPromoCodeDiscountType.enum';
97
+ export * from './PromoCode/PromoCodeStayDateRangeType.enum';
98
+ /**
99
+ * Roomstay Events
100
+ */
101
+ export * from './Events/ERoomstayEventSource.enum';
102
+ export * from './Events/IRoomstayEvent.type';
103
+ /**
104
+ * General
105
+ */
106
+ export * from './General/Format.types';
107
+ export * from './General/HttpMethod.enum';
108
+ export * from './General/IMessage.type';
109
+ export * from './General/Pagination.types';
110
+ export * from './General/Warning.type';
111
+ /**
112
+ * Media
113
+ */
114
+ export * from './Media/IMedia.type';
115
+ /**
116
+ * Fees
117
+ */
118
+ export * from './Fees/EFeeType.enum';
119
+ export * from './Fees/IFee.type';
120
+ export * from './Fees/IFeeConfigurationOptions.type';
121
+ /**
122
+ * Api
123
+ */
124
+ export * from './Api/Reservations.type';
125
+ export * from './Api/RoomNightRate.type';
126
+ /**
127
+ * Analytics
128
+ */
129
+ export * from './Analytics/IBigQueryResults.type';
130
+ /**
131
+ * Analytics Events
132
+ */
133
+ export * from './AnalyticsEvents/IAnalyticsEvent.type';
134
+ export * from './AnalyticsEvents/IAnalyticsSession.type';
135
+ export * from './AnalyticsEvents/IRoomstayEventData.type';
136
+ export * from './AnalyticsEvents/MetaCapiTransformer';
137
+ /**
138
+ * Gift Cards
139
+ */
140
+ export * from './GiftCards/GiftCard.types';
141
+ export * from './GiftCards/GiftCardAuth.types';
142
+ /**
143
+ * Addons
144
+ */
145
+ export * from './Addons/Addon.enum';
146
+ export * from './Addons/Addon.types';
147
+ /**
148
+ * Api
149
+ */
150
+ export * from './Api/Reservations.type';
151
+ export * from './Api/RoomNightRate.type';
152
+ /**
153
+ * Gift Cards
154
+ */
155
+ export * from './GiftCards/GiftCard.types';
156
+ export * from './GiftCards/GiftCardAuth.types';
157
+ export * from './GiftCards/GiftCardLogs.enum';
158
+ /**
159
+ * Display Policies
160
+ */
161
+ export * from './DisplayPolicy/IDisplayPolicy.type';
162
+ export * from './DisplayPolicy/EDisplayPolicyRuleType.enum';
163
+ /**
164
+ * Metasearch
165
+ */
166
+ export * from './Metasearch/IMetasearchDailyRow.type';
@@ -70,4 +70,3 @@ export declare class TotalCalculator {
70
70
  */
71
71
  static calculateTotalForReservation: (reservation: ReservationsDTO, dismissAddonNightCount?: boolean) => number;
72
72
  }
73
- //# sourceMappingURL=TotalCalculator.d.ts.map
@@ -1,8 +1,7 @@
1
- import { IRoomstayMemberBooking } from '@types';
1
+ import { IRoomstayMemberBooking } from '../types/index.js';
2
2
  /**
3
3
  * Calculates the total AFTER tax of the booking.
4
4
  *
5
5
  * @param reservation IRoomstayMemberBooking
6
6
  */
7
7
  export declare const calculateTotalForMemberBooking: (reservation: IRoomstayMemberBooking) => number;
8
- //# sourceMappingURL=bookingTotal.d.ts.map
@@ -1,4 +1,4 @@
1
- import { IFee } from '@types';
1
+ import { IFee } from '../types/index.js';
2
2
  interface FeeCalculationParams {
3
3
  baseAmount?: number;
4
4
  numberOfNights?: number;
@@ -8,4 +8,3 @@ interface FeeCalculationParams {
8
8
  }
9
9
  export declare function calculateFeeAmount(fee: IFee, params?: FeeCalculationParams): number;
10
10
  export {};
11
- //# sourceMappingURL=calculateFee.d.ts.map
File without changes
@@ -1,6 +1,5 @@
1
- import { EFeeType, IFee, IFeeConfigurationOptions } from '@types';
1
+ import { EFeeType, IFee, IFeeConfigurationOptions } from '../types/index.js';
2
2
  export declare function getFilteredBookingFees<T extends IFee>(fees: T[]): T[];
3
3
  export declare function getFilteredBookingRateFees<T extends IFee>(fees: T[]): T[];
4
4
  export declare function getFilteredBookingAddonFees<T extends IFee>(fees: T[]): T[];
5
5
  export declare function getFeeOptionValidity(feeType: EFeeType): Record<keyof IFeeConfigurationOptions, boolean>;
6
- //# sourceMappingURL=feeTypes.d.ts.map
@@ -8,4 +8,3 @@ export * from './TotalCalculator';
8
8
  export * from './typeUtils';
9
9
  export * from './uppercaseString';
10
10
  export * from './zodUtils';
11
- //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,3 @@ export declare const nameof: <T>(name: Extract<keyof T, string>) => string;
7
7
  * Create a subset of an object based on the provided keys.
8
8
  */
9
9
  export declare const subset: <T extends object, K extends keyof T>(source: T, keys: K[]) => Pick<T, K>;
10
- //# sourceMappingURL=reflection.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ERoomstayImageSize } from '@types';
1
+ import { ERoomstayImageSize } from '../types/index.js';
2
2
  /**
3
3
  * Converts an Image URL to a resized image URL.
4
4
  *
@@ -12,4 +12,3 @@ import { ERoomstayImageSize } from '@types';
12
12
  * @returns
13
13
  */
14
14
  export declare const resizeRoomstayImageUrl: (url: string, size: ERoomstayImageSize) => string;
15
- //# sourceMappingURL=roomstayImageResize.d.ts.map
@@ -0,0 +1,20 @@
1
+ import Decimal from "decimal.js";
2
+ export declare const RoundingType: {
3
+ [key: string]: Decimal.Rounding;
4
+ };
5
+ interface RoundMoneyOptions {
6
+ precision?: number;
7
+ rounding?: Decimal.Rounding;
8
+ }
9
+ /**
10
+ * Rounds a monetary amount to two decimal places.
11
+ *
12
+ * This is used to avoid issues with floating point arithmetic, which can lead to integration problems
13
+ * with some systems, such as RMS.
14
+ *
15
+ * @param amount a string or number to be rounded
16
+ * @param options an object containing precision and rounding options
17
+ * @returns the rounded amount as a number
18
+ */
19
+ export declare const roundMoney: (amount: string | number, options?: RoundMoneyOptions) => number;
20
+ export {};
@@ -1,2 +1 @@
1
1
  export type FlattenObjectKeys<T extends Record<string, unknown>, Key = keyof T> = Key extends string ? T[Key] extends Record<string, unknown> ? `${Key}.${FlattenObjectKeys<T[Key]>}` : `${Key}` : never;
2
- //# sourceMappingURL=typeUtils.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function uppercaseString(toUppercase: string): string;
2
- //# sourceMappingURL=uppercaseString.d.ts.map
@@ -17,4 +17,3 @@ export declare const requireEmail: () => z.ZodEmail;
17
17
  export declare const requirePositiveAmount: () => z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
18
18
  export declare const requireFutureDate: () => z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodType<Date, unknown, z.core.$ZodTypeInternals<Date, unknown>>>;
19
19
  export declare const maxString: (max: number) => z.ZodString;
20
- //# sourceMappingURL=zodUtils.d.ts.map