@hyper.software/common-helpers 2.2.24 → 2.2.27
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.
- package/README.md +0 -0
- package/lib/errors/CriticalError.d.ts +0 -0
- package/lib/errors/CriticalError.js +0 -0
- package/lib/errors/CriticalError.js.map +0 -0
- package/lib/errors/ValidationError.d.ts +0 -0
- package/lib/errors/ValidationError.js +0 -0
- package/lib/errors/ValidationError.js.map +0 -0
- package/lib/errors/ValidationErrorSilent.d.ts +0 -0
- package/lib/errors/ValidationErrorSilent.js +0 -0
- package/lib/errors/ValidationErrorSilent.js.map +0 -0
- package/lib/errors/ValidationErrorWithStatus.d.ts +0 -0
- package/lib/errors/ValidationErrorWithStatus.js +0 -0
- package/lib/errors/ValidationErrorWithStatus.js.map +0 -0
- package/lib/errors/ValidationErrorWithStatusSilent.d.ts +0 -0
- package/lib/errors/ValidationErrorWithStatusSilent.js +0 -0
- package/lib/errors/ValidationErrorWithStatusSilent.js.map +0 -0
- package/lib/errors/__mocks__/errors.mock.d.ts +0 -0
- package/lib/errors/__mocks__/errors.mock.js +0 -0
- package/lib/errors/__mocks__/errors.mock.js.map +0 -0
- package/lib/errors/__tests__/errorMappers.test.d.ts +0 -0
- package/lib/errors/__tests__/errorMappers.test.js +0 -0
- package/lib/errors/__tests__/errorMappers.test.js.map +0 -0
- package/lib/errors/__tests__/errors.test.d.ts +0 -0
- package/lib/errors/__tests__/errors.test.js +0 -0
- package/lib/errors/__tests__/errors.test.js.map +0 -0
- package/lib/errors/errorMappers.d.ts +0 -0
- package/lib/errors/errorMappers.js +0 -0
- package/lib/errors/errorMappers.js.map +0 -0
- package/lib/errors/errors.types.d.ts +0 -0
- package/lib/errors/errors.types.js +0 -0
- package/lib/errors/errors.types.js.map +0 -0
- package/lib/errors/index.d.ts +0 -0
- package/lib/errors/index.js +0 -0
- package/lib/errors/index.js.map +0 -0
- package/lib/express/__tests__/swaggerHelpers.test.d.ts +0 -0
- package/lib/express/__tests__/swaggerHelpers.test.js +0 -0
- package/lib/express/__tests__/swaggerHelpers.test.js.map +0 -0
- package/lib/express/middleware/aliveMiddleware/index.d.ts +0 -0
- package/lib/express/middleware/aliveMiddleware/index.js +0 -0
- package/lib/express/middleware/aliveMiddleware/index.js.map +0 -0
- package/lib/express/middleware/companyMiddleware/company.d.ts +0 -0
- package/lib/express/middleware/companyMiddleware/company.js +0 -0
- package/lib/express/middleware/companyMiddleware/company.js.map +0 -0
- package/lib/express/middleware/companyMiddleware/companyApiRequest.d.ts +0 -0
- package/lib/express/middleware/companyMiddleware/companyApiRequest.js +0 -0
- package/lib/express/middleware/companyMiddleware/companyApiRequest.js.map +0 -0
- package/lib/express/middleware/companyMiddleware/index.d.ts +0 -0
- package/lib/express/middleware/companyMiddleware/index.js +0 -0
- package/lib/express/middleware/companyMiddleware/index.js.map +0 -0
- package/lib/express/middleware/companyMiddleware/index.types.d.ts +0 -0
- package/lib/express/middleware/companyMiddleware/index.types.js +0 -0
- package/lib/express/middleware/companyMiddleware/index.types.js.map +0 -0
- package/lib/express/middleware/expressErrorHandlerMiddleware/__tests__/expressErrorHandlerMiddleware.test.d.ts +0 -0
- package/lib/express/middleware/expressErrorHandlerMiddleware/__tests__/expressErrorHandlerMiddleware.test.js +0 -0
- package/lib/express/middleware/expressErrorHandlerMiddleware/__tests__/expressErrorHandlerMiddleware.test.js.map +0 -0
- package/lib/express/middleware/expressErrorHandlerMiddleware/index.d.ts +0 -0
- package/lib/express/middleware/expressErrorHandlerMiddleware/index.js +0 -0
- package/lib/express/middleware/expressErrorHandlerMiddleware/index.js.map +0 -0
- package/lib/express/middleware/index.d.ts +0 -0
- package/lib/express/middleware/index.js +0 -0
- package/lib/express/middleware/index.js.map +0 -0
- package/lib/express/middleware/languageMiddleware/index.d.ts +0 -0
- package/lib/express/middleware/languageMiddleware/index.js +0 -0
- package/lib/express/middleware/languageMiddleware/index.js.map +0 -0
- package/lib/express/middleware/partnerMiddleware/index.d.ts +0 -0
- package/lib/express/middleware/partnerMiddleware/index.js +0 -0
- package/lib/express/middleware/partnerMiddleware/index.js.map +0 -0
- package/lib/express/middleware/partnerMiddleware/index.types.d.ts +0 -0
- package/lib/express/middleware/partnerMiddleware/index.types.js +0 -0
- package/lib/express/middleware/partnerMiddleware/index.types.js.map +0 -0
- package/lib/express/middleware/partnerMiddleware/partner.d.ts +0 -0
- package/lib/express/middleware/partnerMiddleware/partner.js +0 -0
- package/lib/express/middleware/partnerMiddleware/partner.js.map +0 -0
- package/lib/express/middleware/partnerMiddleware/partnerServiceRequest.d.ts +0 -0
- package/lib/express/middleware/partnerMiddleware/partnerServiceRequest.js +0 -0
- package/lib/express/middleware/partnerMiddleware/partnerServiceRequest.js.map +0 -0
- package/lib/express/middleware/responseHelpersMiddleware/index.d.ts +0 -0
- package/lib/express/middleware/responseHelpersMiddleware/index.js +0 -0
- package/lib/express/middleware/responseHelpersMiddleware/index.js.map +0 -0
- package/lib/express/middleware/responseHelpersMiddleware/types.d.ts +0 -0
- package/lib/express/middleware/responseHelpersMiddleware/types.js +0 -0
- package/lib/express/middleware/responseHelpersMiddleware/types.js.map +0 -0
- package/lib/express/middleware/translationsMiddleware/index.d.ts +0 -0
- package/lib/express/middleware/translationsMiddleware/index.js +0 -0
- package/lib/express/middleware/translationsMiddleware/index.js.map +0 -0
- package/lib/express/swaggerControllersConfig.d.ts +0 -0
- package/lib/express/swaggerControllersConfig.js +0 -0
- package/lib/express/swaggerControllersConfig.js.map +0 -0
- package/lib/express/swaggerHelpers.d.ts +0 -0
- package/lib/express/swaggerHelpers.js +0 -0
- package/lib/express/swaggerHelpers.js.map +0 -0
- package/lib/express/swaggerUiController.d.ts +0 -0
- package/lib/express/swaggerUiController.js +0 -0
- package/lib/express/swaggerUiController.js.map +0 -0
- package/lib/express/swaggerUiTemplate.d.ts +0 -0
- package/lib/express/swaggerUiTemplate.js +0 -0
- package/lib/express/swaggerUiTemplate.js.map +0 -0
- package/lib/helpers/ExecuteOnce.d.ts +0 -0
- package/lib/helpers/ExecuteOnce.js +0 -0
- package/lib/helpers/ExecuteOnce.js.map +0 -0
- package/lib/helpers/UniversalConfig.d.ts +0 -0
- package/lib/helpers/UniversalConfig.js +0 -0
- package/lib/helpers/UniversalConfig.js.map +0 -0
- package/lib/helpers/__tests__/arrays.test.d.ts +0 -0
- package/lib/helpers/__tests__/arrays.test.js +0 -0
- package/lib/helpers/__tests__/arrays.test.js.map +0 -0
- package/lib/helpers/__tests__/emptyValues.test.d.ts +0 -0
- package/lib/helpers/__tests__/emptyValues.test.js +0 -0
- package/lib/helpers/__tests__/emptyValues.test.js.map +0 -0
- package/lib/helpers/__tests__/formatters.formatCurrency.test.d.ts +0 -0
- package/lib/helpers/__tests__/formatters.formatCurrency.test.js +0 -0
- package/lib/helpers/__tests__/formatters.formatCurrency.test.js.map +0 -0
- package/lib/helpers/__tests__/formatters.formatDate.test.d.ts +0 -0
- package/lib/helpers/__tests__/formatters.formatDate.test.js +0 -0
- package/lib/helpers/__tests__/formatters.formatDate.test.js.map +0 -0
- package/lib/helpers/__tests__/formatters.formatDouble.test.d.ts +0 -0
- package/lib/helpers/__tests__/formatters.formatDouble.test.js +0 -0
- package/lib/helpers/__tests__/formatters.formatDouble.test.js.map +0 -0
- package/lib/helpers/__tests__/navigation.getUrlWithSubdomain.test.d.ts +0 -0
- package/lib/helpers/__tests__/navigation.getUrlWithSubdomain.test.js +0 -0
- package/lib/helpers/__tests__/navigation.getUrlWithSubdomain.test.js.map +0 -0
- package/lib/helpers/__tests__/navigation.test.d.ts +0 -0
- package/lib/helpers/__tests__/navigation.test.js +0 -0
- package/lib/helpers/__tests__/navigation.test.js.map +0 -0
- package/lib/helpers/__tests__/strings.test.d.ts +0 -0
- package/lib/helpers/__tests__/strings.test.js +0 -0
- package/lib/helpers/__tests__/strings.test.js.map +0 -0
- package/lib/helpers/__tests__/validation.test.d.ts +0 -0
- package/lib/helpers/__tests__/validation.test.js +0 -0
- package/lib/helpers/__tests__/validation.test.js.map +0 -0
- package/lib/helpers/arrays.d.ts +0 -0
- package/lib/helpers/arrays.js +0 -0
- package/lib/helpers/arrays.js.map +0 -0
- package/lib/helpers/clientLogger.d.ts +0 -0
- package/lib/helpers/clientLogger.js +0 -0
- package/lib/helpers/clientLogger.js.map +0 -0
- package/lib/helpers/constants/common.d.ts +0 -0
- package/lib/helpers/constants/common.js +0 -0
- package/lib/helpers/constants/common.js.map +0 -0
- package/lib/helpers/constants/fileUploads.d.ts +0 -0
- package/lib/helpers/constants/fileUploads.js +0 -0
- package/lib/helpers/constants/fileUploads.js.map +0 -0
- package/lib/helpers/constants/index.d.ts +0 -0
- package/lib/helpers/constants/index.js +0 -0
- package/lib/helpers/constants/index.js.map +0 -0
- package/lib/helpers/constants/integrations.d.ts +0 -0
- package/lib/helpers/constants/integrations.js +0 -0
- package/lib/helpers/constants/integrations.js.map +0 -0
- package/lib/helpers/constants/language.d.ts +0 -0
- package/lib/helpers/constants/language.js +0 -0
- package/lib/helpers/constants/language.js.map +0 -0
- package/lib/helpers/constants/supportUsers.d.ts +0 -0
- package/lib/helpers/constants/supportUsers.js +0 -0
- package/lib/helpers/constants/supportUsers.js.map +0 -0
- package/lib/helpers/constants/swagger.d.ts +0 -0
- package/lib/helpers/constants/swagger.js +0 -0
- package/lib/helpers/constants/swagger.js.map +0 -0
- package/lib/helpers/constants/urls.d.ts +0 -0
- package/lib/helpers/constants/urls.js +0 -0
- package/lib/helpers/constants/urls.js.map +0 -0
- package/lib/helpers/constants/user.d.ts +0 -0
- package/lib/helpers/constants/user.js +0 -0
- package/lib/helpers/constants/user.js.map +0 -0
- package/lib/helpers/constants/validators.d.ts +0 -0
- package/lib/helpers/constants/validators.js +0 -0
- package/lib/helpers/constants/validators.js.map +0 -0
- package/lib/helpers/emptyValues.d.ts +0 -0
- package/lib/helpers/emptyValues.js +0 -0
- package/lib/helpers/emptyValues.js.map +0 -0
- package/lib/helpers/formatters.d.ts +0 -0
- package/lib/helpers/formatters.js +0 -0
- package/lib/helpers/formatters.js.map +0 -0
- package/lib/helpers/guards.d.ts +0 -0
- package/lib/helpers/guards.js +0 -0
- package/lib/helpers/guards.js.map +0 -0
- package/lib/helpers/index.d.ts +0 -0
- package/lib/helpers/index.js +0 -0
- package/lib/helpers/index.js.map +0 -0
- package/lib/helpers/isBrowser.d.ts +0 -0
- package/lib/helpers/isBrowser.js +0 -0
- package/lib/helpers/isBrowser.js.map +0 -0
- package/lib/helpers/math.d.ts +0 -0
- package/lib/helpers/math.js +0 -0
- package/lib/helpers/math.js.map +0 -0
- package/lib/helpers/moment.d.ts +0 -0
- package/lib/helpers/moment.js +0 -0
- package/lib/helpers/moment.js.map +0 -0
- package/lib/helpers/navigation.d.ts +0 -0
- package/lib/helpers/navigation.js +0 -0
- package/lib/helpers/navigation.js.map +0 -0
- package/lib/helpers/stringifySafe.d.ts +0 -0
- package/lib/helpers/stringifySafe.js +0 -0
- package/lib/helpers/stringifySafe.js.map +0 -0
- package/lib/helpers/strings.d.ts +0 -0
- package/lib/helpers/strings.js +0 -0
- package/lib/helpers/strings.js.map +0 -0
- package/lib/helpers/validation.d.ts +0 -0
- package/lib/helpers/validation.js +0 -0
- package/lib/helpers/validation.js.map +0 -0
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -0
- package/lib/index.js.map +0 -0
- package/lib/interfaces.d.ts +17 -0
- package/lib/interfaces.js +6 -1
- package/lib/interfaces.js.map +1 -1
- package/lib/redux/analyticsMiddleware.d.ts +0 -0
- package/lib/redux/analyticsMiddleware.js +0 -0
- package/lib/redux/analyticsMiddleware.js.map +0 -0
- package/lib/redux/clientMiddleware.d.ts +0 -0
- package/lib/redux/clientMiddleware.js +0 -0
- package/lib/redux/clientMiddleware.js.map +0 -0
- package/lib/redux/emptyMiddleware.d.ts +0 -0
- package/lib/redux/emptyMiddleware.js +0 -0
- package/lib/redux/emptyMiddleware.js.map +0 -0
- package/lib/redux/index.d.ts +0 -0
- package/lib/redux/index.js +0 -0
- package/lib/redux/index.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingInvoiceService.getAdultAndChildrenCount.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingInvoiceService.getAdultAndChildrenCount.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingInvoiceService.getAdultAndChildrenCount.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingInvoiceService.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingInvoiceService.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingInvoiceService.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingService.calculateDynamic.test.d.ts +1 -0
- package/lib/services/bookingService/__tests__/bookingService.calculateDynamic.test.js +280 -0
- package/lib/services/bookingService/__tests__/bookingService.calculateDynamic.test.js.map +1 -0
- package/lib/services/bookingService/__tests__/bookingService.initialiseProducts.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingService.initialiseProducts.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingService.initialiseProducts.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingServicesService.getBookingServiceTotalCost.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingServicesService.getBookingServiceTotalCost.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingServicesService.getBookingServiceTotalCost.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getAccommodationCost.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getAccommodationCost.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getAccommodationCost.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getBookingServiceQuantity.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getBookingServiceQuantity.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getBookingServiceQuantity.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getChildrenCost.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getChildrenCost.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getChildrenCost.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getLengthOfStay.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getLengthOfStay.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getLengthOfStay.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getSeasonalNights.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getSeasonalNights.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getSeasonalNights.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getServicesCost.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getServicesCost.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getServicesCost.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getTotalCost.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getTotalCost.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.getTotalCost.test.js.map +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.manualComputeTotalCost.test.d.ts +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.manualComputeTotalCost.test.js +0 -0
- package/lib/services/bookingService/__tests__/bookingsService.manualComputeTotalCost.test.js.map +0 -0
- package/lib/services/bookingService/bookingInvoiceService.d.ts +0 -0
- package/lib/services/bookingService/bookingInvoiceService.js +0 -0
- package/lib/services/bookingService/bookingInvoiceService.js.map +0 -0
- package/lib/services/bookingService/bookingServicesService.d.ts +0 -0
- package/lib/services/bookingService/bookingServicesService.js +0 -0
- package/lib/services/bookingService/bookingServicesService.js.map +0 -0
- package/lib/services/bookingService/bookingsService.d.ts +0 -0
- package/lib/services/bookingService/bookingsService.js +0 -0
- package/lib/services/bookingService/bookingsService.js.map +0 -0
- package/lib/services/cookieService/cookieService.d.ts +0 -0
- package/lib/services/cookieService/cookieService.js +0 -0
- package/lib/services/cookieService/cookieService.js.map +0 -0
- package/lib/services/dateService/dateService.d.ts +0 -0
- package/lib/services/dateService/dateService.js +0 -0
- package/lib/services/dateService/dateService.js.map +0 -0
- package/lib/services/dynamicPricingService/dynamicPricingService.d.ts +22 -0
- package/lib/services/dynamicPricingService/dynamicPricingService.js +136 -0
- package/lib/services/dynamicPricingService/dynamicPricingService.js.map +1 -0
- package/lib/services/googleAnalyticsService/googleAnalyticsService.d.ts +0 -0
- package/lib/services/googleAnalyticsService/googleAnalyticsService.js +0 -0
- package/lib/services/googleAnalyticsService/googleAnalyticsService.js.map +0 -0
- package/lib/services/imageService/imageService.d.ts +0 -0
- package/lib/services/imageService/imageService.js +0 -0
- package/lib/services/imageService/imageService.js.map +0 -0
- package/lib/services/index.d.ts +0 -0
- package/lib/services/index.js +0 -0
- package/lib/services/index.js.map +0 -0
- package/lib/services/languageService/languageService.d.ts +0 -0
- package/lib/services/languageService/languageService.js +0 -0
- package/lib/services/languageService/languageService.js.map +0 -0
- package/lib/services/localstorageService/localstorageService.d.ts +0 -0
- package/lib/services/localstorageService/localstorageService.js +0 -0
- package/lib/services/localstorageService/localstorageService.js.map +0 -0
- package/lib/services/roomBookingService/__tests__/roomBookingService.distributeGuests.test.d.ts +0 -0
- package/lib/services/roomBookingService/__tests__/roomBookingService.distributeGuests.test.js +0 -0
- package/lib/services/roomBookingService/__tests__/roomBookingService.distributeGuests.test.js.map +0 -0
- package/lib/services/roomBookingService/index.d.ts +0 -0
- package/lib/services/roomBookingService/index.js +0 -0
- package/lib/services/roomBookingService/index.js.map +0 -0
- package/lib/services/sessionStorageService/index.d.ts +0 -0
- package/lib/services/sessionStorageService/index.js +0 -0
- package/lib/services/sessionStorageService/index.js.map +0 -0
- package/lib/testingData/bookingData.d.ts +0 -0
- package/lib/testingData/bookingData.js +0 -0
- package/lib/testingData/bookingData.js.map +0 -0
- package/lib/testingData/companyData.d.ts +0 -0
- package/lib/testingData/companyData.js +0 -0
- package/lib/testingData/companyData.js.map +0 -0
- package/lib/testingData/roomsData.d.ts +0 -0
- package/lib/testingData/roomsData.js +0 -0
- package/lib/testingData/roomsData.js.map +0 -0
- package/lib/translations/getAllTranslations.d.ts +0 -0
- package/lib/translations/getAllTranslations.js +0 -0
- package/lib/translations/getAllTranslations.js.map +0 -0
- 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
|
package/lib/errors/index.d.ts
CHANGED
|
File without changes
|
package/lib/errors/index.js
CHANGED
|
File without changes
|
package/lib/errors/index.js.map
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
|
package/lib/helpers/arrays.d.ts
CHANGED
|
File without changes
|
package/lib/helpers/arrays.js
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
|
package/lib/helpers/guards.d.ts
CHANGED
|
File without changes
|
package/lib/helpers/guards.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/helpers/index.d.ts
CHANGED
|
File without changes
|
package/lib/helpers/index.js
CHANGED
|
File without changes
|
package/lib/helpers/index.js.map
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/helpers/isBrowser.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/helpers/math.d.ts
CHANGED
|
File without changes
|
package/lib/helpers/math.js
CHANGED
|
File without changes
|
package/lib/helpers/math.js.map
CHANGED
|
File without changes
|
package/lib/helpers/moment.d.ts
CHANGED
|
File without changes
|
package/lib/helpers/moment.js
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
|
package/lib/helpers/strings.d.ts
CHANGED
|
File without changes
|
package/lib/helpers/strings.js
CHANGED
|
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
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -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";
|