@hyper.software/common-helpers 2.2.23 → 2.2.25

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 (311) hide show
  1. package/README.md +0 -0
  2. package/lib/errors/CriticalError.d.ts +0 -0
  3. package/lib/errors/CriticalError.js +0 -0
  4. package/lib/errors/CriticalError.js.map +0 -0
  5. package/lib/errors/ValidationError.d.ts +0 -0
  6. package/lib/errors/ValidationError.js +0 -0
  7. package/lib/errors/ValidationError.js.map +0 -0
  8. package/lib/errors/ValidationErrorSilent.d.ts +0 -0
  9. package/lib/errors/ValidationErrorSilent.js +0 -0
  10. package/lib/errors/ValidationErrorSilent.js.map +0 -0
  11. package/lib/errors/ValidationErrorWithStatus.d.ts +0 -0
  12. package/lib/errors/ValidationErrorWithStatus.js +0 -0
  13. package/lib/errors/ValidationErrorWithStatus.js.map +0 -0
  14. package/lib/errors/ValidationErrorWithStatusSilent.d.ts +0 -0
  15. package/lib/errors/ValidationErrorWithStatusSilent.js +0 -0
  16. package/lib/errors/ValidationErrorWithStatusSilent.js.map +0 -0
  17. package/lib/errors/__mocks__/errors.mock.d.ts +0 -0
  18. package/lib/errors/__mocks__/errors.mock.js +0 -0
  19. package/lib/errors/__mocks__/errors.mock.js.map +0 -0
  20. package/lib/errors/__tests__/errorMappers.test.d.ts +0 -0
  21. package/lib/errors/__tests__/errorMappers.test.js +0 -0
  22. package/lib/errors/__tests__/errorMappers.test.js.map +0 -0
  23. package/lib/errors/__tests__/errors.test.d.ts +0 -0
  24. package/lib/errors/__tests__/errors.test.js +0 -0
  25. package/lib/errors/__tests__/errors.test.js.map +0 -0
  26. package/lib/errors/errorMappers.d.ts +0 -0
  27. package/lib/errors/errorMappers.js +0 -0
  28. package/lib/errors/errorMappers.js.map +0 -0
  29. package/lib/errors/errors.types.d.ts +0 -0
  30. package/lib/errors/errors.types.js +0 -0
  31. package/lib/errors/errors.types.js.map +0 -0
  32. package/lib/errors/index.d.ts +0 -0
  33. package/lib/errors/index.js +0 -0
  34. package/lib/errors/index.js.map +0 -0
  35. package/lib/express/__tests__/swaggerHelpers.test.d.ts +0 -0
  36. package/lib/express/__tests__/swaggerHelpers.test.js +0 -0
  37. package/lib/express/__tests__/swaggerHelpers.test.js.map +0 -0
  38. package/lib/express/middleware/aliveMiddleware/index.d.ts +0 -0
  39. package/lib/express/middleware/aliveMiddleware/index.js +0 -0
  40. package/lib/express/middleware/aliveMiddleware/index.js.map +0 -0
  41. package/lib/express/middleware/companyMiddleware/company.d.ts +0 -0
  42. package/lib/express/middleware/companyMiddleware/company.js +0 -0
  43. package/lib/express/middleware/companyMiddleware/company.js.map +0 -0
  44. package/lib/express/middleware/companyMiddleware/companyApiRequest.d.ts +0 -0
  45. package/lib/express/middleware/companyMiddleware/companyApiRequest.js +0 -0
  46. package/lib/express/middleware/companyMiddleware/companyApiRequest.js.map +0 -0
  47. package/lib/express/middleware/companyMiddleware/index.d.ts +0 -0
  48. package/lib/express/middleware/companyMiddleware/index.js +0 -0
  49. package/lib/express/middleware/companyMiddleware/index.js.map +0 -0
  50. package/lib/express/middleware/companyMiddleware/index.types.d.ts +0 -0
  51. package/lib/express/middleware/companyMiddleware/index.types.js +0 -0
  52. package/lib/express/middleware/companyMiddleware/index.types.js.map +0 -0
  53. package/lib/express/middleware/expressErrorHandlerMiddleware/__tests__/expressErrorHandlerMiddleware.test.d.ts +0 -0
  54. package/lib/express/middleware/expressErrorHandlerMiddleware/__tests__/expressErrorHandlerMiddleware.test.js +0 -0
  55. package/lib/express/middleware/expressErrorHandlerMiddleware/__tests__/expressErrorHandlerMiddleware.test.js.map +0 -0
  56. package/lib/express/middleware/expressErrorHandlerMiddleware/index.d.ts +0 -0
  57. package/lib/express/middleware/expressErrorHandlerMiddleware/index.js +0 -0
  58. package/lib/express/middleware/expressErrorHandlerMiddleware/index.js.map +0 -0
  59. package/lib/express/middleware/index.d.ts +0 -0
  60. package/lib/express/middleware/index.js +0 -0
  61. package/lib/express/middleware/index.js.map +0 -0
  62. package/lib/express/middleware/languageMiddleware/index.d.ts +0 -0
  63. package/lib/express/middleware/languageMiddleware/index.js +0 -0
  64. package/lib/express/middleware/languageMiddleware/index.js.map +0 -0
  65. package/lib/express/middleware/partnerMiddleware/index.d.ts +0 -0
  66. package/lib/express/middleware/partnerMiddleware/index.js +0 -0
  67. package/lib/express/middleware/partnerMiddleware/index.js.map +0 -0
  68. package/lib/express/middleware/partnerMiddleware/index.types.d.ts +0 -0
  69. package/lib/express/middleware/partnerMiddleware/index.types.js +0 -0
  70. package/lib/express/middleware/partnerMiddleware/index.types.js.map +0 -0
  71. package/lib/express/middleware/partnerMiddleware/partner.d.ts +0 -0
  72. package/lib/express/middleware/partnerMiddleware/partner.js +0 -0
  73. package/lib/express/middleware/partnerMiddleware/partner.js.map +0 -0
  74. package/lib/express/middleware/partnerMiddleware/partnerServiceRequest.d.ts +0 -0
  75. package/lib/express/middleware/partnerMiddleware/partnerServiceRequest.js +0 -0
  76. package/lib/express/middleware/partnerMiddleware/partnerServiceRequest.js.map +0 -0
  77. package/lib/express/middleware/responseHelpersMiddleware/index.d.ts +0 -0
  78. package/lib/express/middleware/responseHelpersMiddleware/index.js +0 -0
  79. package/lib/express/middleware/responseHelpersMiddleware/index.js.map +0 -0
  80. package/lib/express/middleware/responseHelpersMiddleware/types.d.ts +0 -0
  81. package/lib/express/middleware/responseHelpersMiddleware/types.js +0 -0
  82. package/lib/express/middleware/responseHelpersMiddleware/types.js.map +0 -0
  83. package/lib/express/middleware/translationsMiddleware/index.d.ts +0 -0
  84. package/lib/express/middleware/translationsMiddleware/index.js +0 -0
  85. package/lib/express/middleware/translationsMiddleware/index.js.map +0 -0
  86. package/lib/express/swaggerControllersConfig.d.ts +0 -0
  87. package/lib/express/swaggerControllersConfig.js +0 -0
  88. package/lib/express/swaggerControllersConfig.js.map +0 -0
  89. package/lib/express/swaggerHelpers.d.ts +0 -0
  90. package/lib/express/swaggerHelpers.js +0 -0
  91. package/lib/express/swaggerHelpers.js.map +0 -0
  92. package/lib/express/swaggerUiController.d.ts +0 -0
  93. package/lib/express/swaggerUiController.js +0 -0
  94. package/lib/express/swaggerUiController.js.map +0 -0
  95. package/lib/express/swaggerUiTemplate.d.ts +0 -0
  96. package/lib/express/swaggerUiTemplate.js +0 -0
  97. package/lib/express/swaggerUiTemplate.js.map +0 -0
  98. package/lib/helpers/ExecuteOnce.d.ts +0 -0
  99. package/lib/helpers/ExecuteOnce.js +0 -0
  100. package/lib/helpers/ExecuteOnce.js.map +0 -0
  101. package/lib/helpers/UniversalConfig.d.ts +0 -0
  102. package/lib/helpers/UniversalConfig.js +0 -0
  103. package/lib/helpers/UniversalConfig.js.map +0 -0
  104. package/lib/helpers/__tests__/arrays.test.d.ts +0 -0
  105. package/lib/helpers/__tests__/arrays.test.js +0 -0
  106. package/lib/helpers/__tests__/arrays.test.js.map +0 -0
  107. package/lib/helpers/__tests__/emptyValues.test.d.ts +0 -0
  108. package/lib/helpers/__tests__/emptyValues.test.js +0 -0
  109. package/lib/helpers/__tests__/emptyValues.test.js.map +0 -0
  110. package/lib/helpers/__tests__/formatters.formatCurrency.test.d.ts +0 -0
  111. package/lib/helpers/__tests__/formatters.formatCurrency.test.js +0 -0
  112. package/lib/helpers/__tests__/formatters.formatCurrency.test.js.map +0 -0
  113. package/lib/helpers/__tests__/formatters.formatDate.test.d.ts +0 -0
  114. package/lib/helpers/__tests__/formatters.formatDate.test.js +0 -0
  115. package/lib/helpers/__tests__/formatters.formatDate.test.js.map +0 -0
  116. package/lib/helpers/__tests__/formatters.formatDouble.test.d.ts +0 -0
  117. package/lib/helpers/__tests__/formatters.formatDouble.test.js +0 -0
  118. package/lib/helpers/__tests__/formatters.formatDouble.test.js.map +0 -0
  119. package/lib/helpers/__tests__/navigation.getUrlWithSubdomain.test.d.ts +0 -0
  120. package/lib/helpers/__tests__/navigation.getUrlWithSubdomain.test.js +0 -0
  121. package/lib/helpers/__tests__/navigation.getUrlWithSubdomain.test.js.map +0 -0
  122. package/lib/helpers/__tests__/navigation.test.d.ts +0 -0
  123. package/lib/helpers/__tests__/navigation.test.js +0 -0
  124. package/lib/helpers/__tests__/navigation.test.js.map +0 -0
  125. package/lib/helpers/__tests__/strings.test.d.ts +0 -0
  126. package/lib/helpers/__tests__/strings.test.js +0 -0
  127. package/lib/helpers/__tests__/strings.test.js.map +0 -0
  128. package/lib/helpers/__tests__/validation.test.d.ts +0 -0
  129. package/lib/helpers/__tests__/validation.test.js +0 -0
  130. package/lib/helpers/__tests__/validation.test.js.map +0 -0
  131. package/lib/helpers/arrays.d.ts +0 -0
  132. package/lib/helpers/arrays.js +0 -0
  133. package/lib/helpers/arrays.js.map +0 -0
  134. package/lib/helpers/clientLogger.d.ts +0 -0
  135. package/lib/helpers/clientLogger.js +0 -0
  136. package/lib/helpers/clientLogger.js.map +0 -0
  137. package/lib/helpers/constants/common.d.ts +0 -0
  138. package/lib/helpers/constants/common.js +0 -0
  139. package/lib/helpers/constants/common.js.map +0 -0
  140. package/lib/helpers/constants/fileUploads.d.ts +0 -0
  141. package/lib/helpers/constants/fileUploads.js +0 -0
  142. package/lib/helpers/constants/fileUploads.js.map +0 -0
  143. package/lib/helpers/constants/index.d.ts +0 -0
  144. package/lib/helpers/constants/index.js +0 -0
  145. package/lib/helpers/constants/index.js.map +0 -0
  146. package/lib/helpers/constants/integrations.d.ts +0 -0
  147. package/lib/helpers/constants/integrations.js +0 -0
  148. package/lib/helpers/constants/integrations.js.map +0 -0
  149. package/lib/helpers/constants/language.d.ts +0 -0
  150. package/lib/helpers/constants/language.js +0 -0
  151. package/lib/helpers/constants/language.js.map +0 -0
  152. package/lib/helpers/constants/supportUsers.d.ts +0 -0
  153. package/lib/helpers/constants/supportUsers.js +0 -0
  154. package/lib/helpers/constants/supportUsers.js.map +0 -0
  155. package/lib/helpers/constants/swagger.d.ts +0 -0
  156. package/lib/helpers/constants/swagger.js +0 -0
  157. package/lib/helpers/constants/swagger.js.map +0 -0
  158. package/lib/helpers/constants/urls.d.ts +0 -0
  159. package/lib/helpers/constants/urls.js +0 -0
  160. package/lib/helpers/constants/urls.js.map +0 -0
  161. package/lib/helpers/constants/user.d.ts +0 -0
  162. package/lib/helpers/constants/user.js +0 -0
  163. package/lib/helpers/constants/user.js.map +0 -0
  164. package/lib/helpers/constants/validators.d.ts +0 -0
  165. package/lib/helpers/constants/validators.js +0 -0
  166. package/lib/helpers/constants/validators.js.map +0 -0
  167. package/lib/helpers/emptyValues.d.ts +0 -0
  168. package/lib/helpers/emptyValues.js +0 -0
  169. package/lib/helpers/emptyValues.js.map +0 -0
  170. package/lib/helpers/formatters.d.ts +0 -0
  171. package/lib/helpers/formatters.js +0 -0
  172. package/lib/helpers/formatters.js.map +0 -0
  173. package/lib/helpers/guards.d.ts +0 -0
  174. package/lib/helpers/guards.js +0 -0
  175. package/lib/helpers/guards.js.map +0 -0
  176. package/lib/helpers/index.d.ts +0 -0
  177. package/lib/helpers/index.js +0 -0
  178. package/lib/helpers/index.js.map +0 -0
  179. package/lib/helpers/isBrowser.d.ts +0 -0
  180. package/lib/helpers/isBrowser.js +0 -0
  181. package/lib/helpers/isBrowser.js.map +0 -0
  182. package/lib/helpers/math.d.ts +0 -0
  183. package/lib/helpers/math.js +0 -0
  184. package/lib/helpers/math.js.map +0 -0
  185. package/lib/helpers/moment.d.ts +0 -0
  186. package/lib/helpers/moment.js +0 -0
  187. package/lib/helpers/moment.js.map +0 -0
  188. package/lib/helpers/navigation.d.ts +0 -0
  189. package/lib/helpers/navigation.js +0 -0
  190. package/lib/helpers/navigation.js.map +0 -0
  191. package/lib/helpers/stringifySafe.d.ts +0 -0
  192. package/lib/helpers/stringifySafe.js +0 -0
  193. package/lib/helpers/stringifySafe.js.map +0 -0
  194. package/lib/helpers/strings.d.ts +0 -0
  195. package/lib/helpers/strings.js +0 -0
  196. package/lib/helpers/strings.js.map +0 -0
  197. package/lib/helpers/validation.d.ts +0 -0
  198. package/lib/helpers/validation.js +0 -0
  199. package/lib/helpers/validation.js.map +0 -0
  200. package/lib/index.d.ts +0 -0
  201. package/lib/index.js +0 -0
  202. package/lib/index.js.map +0 -0
  203. package/lib/interfaces.d.ts +17 -0
  204. package/lib/interfaces.js +6 -1
  205. package/lib/interfaces.js.map +1 -1
  206. package/lib/redux/analyticsMiddleware.d.ts +0 -0
  207. package/lib/redux/analyticsMiddleware.js +0 -0
  208. package/lib/redux/analyticsMiddleware.js.map +0 -0
  209. package/lib/redux/clientMiddleware.d.ts +0 -0
  210. package/lib/redux/clientMiddleware.js +0 -0
  211. package/lib/redux/clientMiddleware.js.map +0 -0
  212. package/lib/redux/emptyMiddleware.d.ts +0 -0
  213. package/lib/redux/emptyMiddleware.js +0 -0
  214. package/lib/redux/emptyMiddleware.js.map +0 -0
  215. package/lib/redux/index.d.ts +0 -0
  216. package/lib/redux/index.js +0 -0
  217. package/lib/redux/index.js.map +0 -0
  218. package/lib/services/bookingService/__tests__/bookingInvoiceService.getAdultAndChildrenCount.test.d.ts +0 -0
  219. package/lib/services/bookingService/__tests__/bookingInvoiceService.getAdultAndChildrenCount.test.js +0 -0
  220. package/lib/services/bookingService/__tests__/bookingInvoiceService.getAdultAndChildrenCount.test.js.map +0 -0
  221. package/lib/services/bookingService/__tests__/bookingInvoiceService.test.d.ts +0 -0
  222. package/lib/services/bookingService/__tests__/bookingInvoiceService.test.js +0 -0
  223. package/lib/services/bookingService/__tests__/bookingInvoiceService.test.js.map +0 -0
  224. package/lib/services/bookingService/__tests__/bookingService.calculateDynamic.test.d.ts +1 -0
  225. package/lib/services/bookingService/__tests__/bookingService.calculateDynamic.test.js +280 -0
  226. package/lib/services/bookingService/__tests__/bookingService.calculateDynamic.test.js.map +1 -0
  227. package/lib/services/bookingService/__tests__/bookingService.initialiseProducts.test.d.ts +0 -0
  228. package/lib/services/bookingService/__tests__/bookingService.initialiseProducts.test.js +0 -0
  229. package/lib/services/bookingService/__tests__/bookingService.initialiseProducts.test.js.map +0 -0
  230. package/lib/services/bookingService/__tests__/bookingServicesService.getBookingServiceTotalCost.test.d.ts +0 -0
  231. package/lib/services/bookingService/__tests__/bookingServicesService.getBookingServiceTotalCost.test.js +0 -0
  232. package/lib/services/bookingService/__tests__/bookingServicesService.getBookingServiceTotalCost.test.js.map +0 -0
  233. package/lib/services/bookingService/__tests__/bookingsService.getAccommodationCost.test.d.ts +0 -0
  234. package/lib/services/bookingService/__tests__/bookingsService.getAccommodationCost.test.js +0 -0
  235. package/lib/services/bookingService/__tests__/bookingsService.getAccommodationCost.test.js.map +0 -0
  236. package/lib/services/bookingService/__tests__/bookingsService.getBookingServiceQuantity.test.d.ts +0 -0
  237. package/lib/services/bookingService/__tests__/bookingsService.getBookingServiceQuantity.test.js +0 -0
  238. package/lib/services/bookingService/__tests__/bookingsService.getBookingServiceQuantity.test.js.map +0 -0
  239. package/lib/services/bookingService/__tests__/bookingsService.getChildrenCost.test.d.ts +0 -0
  240. package/lib/services/bookingService/__tests__/bookingsService.getChildrenCost.test.js +0 -0
  241. package/lib/services/bookingService/__tests__/bookingsService.getChildrenCost.test.js.map +0 -0
  242. package/lib/services/bookingService/__tests__/bookingsService.getLengthOfStay.test.d.ts +0 -0
  243. package/lib/services/bookingService/__tests__/bookingsService.getLengthOfStay.test.js +0 -0
  244. package/lib/services/bookingService/__tests__/bookingsService.getLengthOfStay.test.js.map +0 -0
  245. package/lib/services/bookingService/__tests__/bookingsService.getSeasonalNights.test.d.ts +0 -0
  246. package/lib/services/bookingService/__tests__/bookingsService.getSeasonalNights.test.js +0 -0
  247. package/lib/services/bookingService/__tests__/bookingsService.getSeasonalNights.test.js.map +0 -0
  248. package/lib/services/bookingService/__tests__/bookingsService.getServicesCost.test.d.ts +0 -0
  249. package/lib/services/bookingService/__tests__/bookingsService.getServicesCost.test.js +0 -0
  250. package/lib/services/bookingService/__tests__/bookingsService.getServicesCost.test.js.map +0 -0
  251. package/lib/services/bookingService/__tests__/bookingsService.getTotalCost.test.d.ts +0 -0
  252. package/lib/services/bookingService/__tests__/bookingsService.getTotalCost.test.js +0 -0
  253. package/lib/services/bookingService/__tests__/bookingsService.getTotalCost.test.js.map +0 -0
  254. package/lib/services/bookingService/__tests__/bookingsService.manualComputeTotalCost.test.d.ts +0 -0
  255. package/lib/services/bookingService/__tests__/bookingsService.manualComputeTotalCost.test.js +0 -0
  256. package/lib/services/bookingService/__tests__/bookingsService.manualComputeTotalCost.test.js.map +0 -0
  257. package/lib/services/bookingService/bookingInvoiceService.d.ts +0 -0
  258. package/lib/services/bookingService/bookingInvoiceService.js +0 -0
  259. package/lib/services/bookingService/bookingInvoiceService.js.map +0 -0
  260. package/lib/services/bookingService/bookingServicesService.d.ts +0 -0
  261. package/lib/services/bookingService/bookingServicesService.js +0 -0
  262. package/lib/services/bookingService/bookingServicesService.js.map +0 -0
  263. package/lib/services/bookingService/bookingsService.d.ts +0 -0
  264. package/lib/services/bookingService/bookingsService.js +2 -1
  265. package/lib/services/bookingService/bookingsService.js.map +1 -1
  266. package/lib/services/cookieService/cookieService.d.ts +0 -0
  267. package/lib/services/cookieService/cookieService.js +0 -0
  268. package/lib/services/cookieService/cookieService.js.map +0 -0
  269. package/lib/services/dateService/dateService.d.ts +0 -0
  270. package/lib/services/dateService/dateService.js +0 -0
  271. package/lib/services/dateService/dateService.js.map +0 -0
  272. package/lib/services/dynamicPricingService/dynamicPricingService.d.ts +22 -0
  273. package/lib/services/dynamicPricingService/dynamicPricingService.js +136 -0
  274. package/lib/services/dynamicPricingService/dynamicPricingService.js.map +1 -0
  275. package/lib/services/googleAnalyticsService/googleAnalyticsService.d.ts +0 -0
  276. package/lib/services/googleAnalyticsService/googleAnalyticsService.js +0 -0
  277. package/lib/services/googleAnalyticsService/googleAnalyticsService.js.map +0 -0
  278. package/lib/services/imageService/imageService.d.ts +0 -0
  279. package/lib/services/imageService/imageService.js +0 -0
  280. package/lib/services/imageService/imageService.js.map +0 -0
  281. package/lib/services/index.d.ts +0 -0
  282. package/lib/services/index.js +0 -0
  283. package/lib/services/index.js.map +0 -0
  284. package/lib/services/languageService/languageService.d.ts +0 -0
  285. package/lib/services/languageService/languageService.js +0 -0
  286. package/lib/services/languageService/languageService.js.map +0 -0
  287. package/lib/services/localstorageService/localstorageService.d.ts +0 -0
  288. package/lib/services/localstorageService/localstorageService.js +0 -0
  289. package/lib/services/localstorageService/localstorageService.js.map +0 -0
  290. package/lib/services/roomBookingService/__tests__/roomBookingService.distributeGuests.test.d.ts +0 -0
  291. package/lib/services/roomBookingService/__tests__/roomBookingService.distributeGuests.test.js +0 -0
  292. package/lib/services/roomBookingService/__tests__/roomBookingService.distributeGuests.test.js.map +0 -0
  293. package/lib/services/roomBookingService/index.d.ts +0 -0
  294. package/lib/services/roomBookingService/index.js +0 -0
  295. package/lib/services/roomBookingService/index.js.map +0 -0
  296. package/lib/services/sessionStorageService/index.d.ts +0 -0
  297. package/lib/services/sessionStorageService/index.js +0 -0
  298. package/lib/services/sessionStorageService/index.js.map +0 -0
  299. package/lib/testingData/bookingData.d.ts +0 -0
  300. package/lib/testingData/bookingData.js +0 -0
  301. package/lib/testingData/bookingData.js.map +0 -0
  302. package/lib/testingData/companyData.d.ts +0 -0
  303. package/lib/testingData/companyData.js +0 -0
  304. package/lib/testingData/companyData.js.map +0 -0
  305. package/lib/testingData/roomsData.d.ts +0 -0
  306. package/lib/testingData/roomsData.js +0 -0
  307. package/lib/testingData/roomsData.js.map +0 -0
  308. package/lib/translations/getAllTranslations.d.ts +0 -0
  309. package/lib/translations/getAllTranslations.js +0 -0
  310. package/lib/translations/getAllTranslations.js.map +0 -0
  311. package/package.json +1 -1
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/index.d.ts CHANGED
File without changes
package/lib/index.js CHANGED
File without changes
package/lib/index.js.map CHANGED
File without changes
@@ -57,6 +57,10 @@ export declare enum SERVICE_TYPE {
57
57
  VALUE_AMOUNT = "VALUE_AMOUNT"
58
58
  }
59
59
  export declare const ALL_CHANNEL_TYPE: CHANNEL_TYPE[];
60
+ export declare enum DYNAMIC_PRICING_TYPE {
61
+ INCREASE = "INCREASE",
62
+ DECREASE = "DECREASE"
63
+ }
60
64
  export interface IRoomTypePricePlanPricingInformation {
61
65
  [date: string]: number;
62
66
  }
@@ -78,6 +82,18 @@ export interface IRoomTypePricePlan extends ITimestamps {
78
82
  pricing?: IRoomTypePricePlanPricingInformation;
79
83
  pricingRules?: IRoomTypePricePlanPricingRules;
80
84
  type?: CHANNEL_TYPE;
85
+ dynamicPricing?: IDynamicPricing;
86
+ }
87
+ export interface IDynamicPricing {
88
+ isActive: boolean;
89
+ startDate: string;
90
+ endDate: string;
91
+ type: DYNAMIC_PRICING_TYPE;
92
+ amount: number;
93
+ basePrice?: IDynamicPricingBasePriceInformation;
94
+ }
95
+ export interface IDynamicPricingBasePriceInformation {
96
+ [date: string]: number;
81
97
  }
82
98
  export declare enum BOOKING_SOURCE {
83
99
  BOOKING = "BOOKING",
@@ -454,6 +470,7 @@ export interface IHoliday {
454
470
  description: string;
455
471
  date: string;
456
472
  type: HOLIDAY;
473
+ enableDynamicPricing?: boolean;
457
474
  }
458
475
  export interface IBaseFile {
459
476
  name: string;
package/lib/interfaces.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CUSTOMER_DATA_STORAGE_PERIOD = exports.ALL_COMPANY_AMENITY_CATEGORY = exports.HOLIDAY = exports.COMPANY_AMENITY_CATEGORY = exports.ALL_CANCELLATION_TYPE = exports.CANCELLATION_TYPE = exports.ALL_PAYMENT_METHOD = exports.PAYMENT_METHOD = exports.ALL_ROOM_TYPE_BREAKFAST_INFORMATION_TYPE = exports.ROOM_TYPE_BREAKFAST_INFORMATION_TYPE = exports.CUSTOMER_SOURCE = exports.ALL_SERVICE_DISPLAY_SECTION = exports.SERVICE_DISPLAY_SECTION = exports.ALL_SERVICE_TAX_TYPE = exports.SERVICE_TAX_TYPE = exports.ALL_SERVICE_PRICING_UNIT = exports.SERVICE_PRICING_UNIT = exports.ALL_BOOKING_SOURCE = exports.BOOKING_STATUS = exports.BOOKING_SOURCE = exports.ALL_CHANNEL_TYPE = exports.SERVICE_TYPE = exports.CHANNEL_TYPE = exports.ALL_DISCOUNT_TYPE = exports.DISCOUNT_TYPE = exports.ALL_CURRENCY = exports.CURRENCY = exports.ALL_LANGUAGE = exports.LANGUAGE = void 0;
3
+ exports.CUSTOMER_DATA_STORAGE_PERIOD = exports.ALL_COMPANY_AMENITY_CATEGORY = exports.HOLIDAY = exports.COMPANY_AMENITY_CATEGORY = exports.ALL_CANCELLATION_TYPE = exports.CANCELLATION_TYPE = exports.ALL_PAYMENT_METHOD = exports.PAYMENT_METHOD = exports.ALL_ROOM_TYPE_BREAKFAST_INFORMATION_TYPE = exports.ROOM_TYPE_BREAKFAST_INFORMATION_TYPE = exports.CUSTOMER_SOURCE = exports.ALL_SERVICE_DISPLAY_SECTION = exports.SERVICE_DISPLAY_SECTION = exports.ALL_SERVICE_TAX_TYPE = exports.SERVICE_TAX_TYPE = exports.ALL_SERVICE_PRICING_UNIT = exports.SERVICE_PRICING_UNIT = exports.ALL_BOOKING_SOURCE = exports.BOOKING_STATUS = exports.BOOKING_SOURCE = exports.DYNAMIC_PRICING_TYPE = exports.ALL_CHANNEL_TYPE = exports.SERVICE_TYPE = exports.CHANNEL_TYPE = exports.ALL_DISCOUNT_TYPE = exports.DISCOUNT_TYPE = exports.ALL_CURRENCY = exports.CURRENCY = exports.ALL_LANGUAGE = exports.LANGUAGE = void 0;
4
4
  var getAllEnumStatuses = function (value) { return Object.keys(value).map(function (key) { return value[key]; }); };
5
5
  var LANGUAGE;
6
6
  (function (LANGUAGE) {
@@ -44,6 +44,11 @@ var SERVICE_TYPE;
44
44
  SERVICE_TYPE["VALUE_AMOUNT"] = "VALUE_AMOUNT";
45
45
  })(SERVICE_TYPE || (exports.SERVICE_TYPE = SERVICE_TYPE = {}));
46
46
  exports.ALL_CHANNEL_TYPE = getAllEnumStatuses(CHANNEL_TYPE);
47
+ var DYNAMIC_PRICING_TYPE;
48
+ (function (DYNAMIC_PRICING_TYPE) {
49
+ DYNAMIC_PRICING_TYPE["INCREASE"] = "INCREASE";
50
+ DYNAMIC_PRICING_TYPE["DECREASE"] = "DECREASE";
51
+ })(DYNAMIC_PRICING_TYPE || (exports.DYNAMIC_PRICING_TYPE = DYNAMIC_PRICING_TYPE = {}));
47
52
  var BOOKING_SOURCE;
48
53
  (function (BOOKING_SOURCE) {
49
54
  BOOKING_SOURCE["BOOKING"] = "BOOKING";