@roomstay/core 0.1.42 → 0.1.43

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 (46) hide show
  1. package/dist/index.d.ts +0 -0
  2. package/dist/node.js +0 -0
  3. package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +0 -0
  4. package/dist/types/Booking/IBookingPayment.type.d.ts +0 -0
  5. package/dist/types/Booking/IBookingQuote.type.d.ts +0 -0
  6. package/dist/types/Booking/IBookingStatus.type.d.ts +0 -0
  7. package/dist/types/Booking/IPrice.type.d.ts +0 -0
  8. package/dist/types/Company/ECompanyProvider.enum.d.ts +0 -0
  9. package/dist/types/Company/IAdminCompany.type.d.ts +0 -0
  10. package/dist/types/Company/IAdminCompanyUser.type.d.ts +0 -0
  11. package/dist/types/Events/IRoomstayEvent.type.d.ts +0 -0
  12. package/dist/types/Fees/EFeeType.enum.d.ts +7 -0
  13. package/dist/types/Fees/IFee.type.d.ts +5 -0
  14. package/dist/types/General/HttpMethod.enum.d.ts +0 -0
  15. package/dist/types/General/IJsonString.type.d.ts +0 -0
  16. package/dist/types/Hotel/EHotelPriceModel.enum.d.ts +0 -0
  17. package/dist/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +0 -0
  18. package/dist/types/Hotel/IAuxiliaryFilter.type.d.ts +0 -0
  19. package/dist/types/Hotel/IHotelColorScheme.type.d.ts +0 -0
  20. package/dist/types/Hotel/IHotelOverrides.type.d.ts +1 -0
  21. package/dist/types/Hotel/IHotelReplica.type.d.ts +0 -0
  22. package/dist/types/Hotel/IHotelService.type.d.ts +0 -0
  23. package/dist/types/Image/IRoomstayImage.type.d.ts +0 -0
  24. package/dist/types/Member/IRoomstayCognitoMember.type.d.ts +0 -0
  25. package/dist/types/Member/IRoomstayMember.type.d.ts +0 -0
  26. package/dist/types/Member/IRoomstayMemberBooking.type.d.ts +0 -0
  27. package/dist/types/Member/IRoomstayMemberBookingAddress.type.d.ts +0 -0
  28. package/dist/types/Member/IRoomstayMemberBookingItem.type.d.ts +0 -0
  29. package/dist/types/Member/IRoomstayMemberBookingProfile.type.d.ts +0 -0
  30. package/dist/types/Member/IRoomstayMemberCards.type.d.ts +0 -0
  31. package/dist/types/Member/ISession.type.d.ts +0 -0
  32. package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +0 -0
  33. package/dist/types/RMS/ERMSDiscountType.enum.d.ts +0 -0
  34. package/dist/types/RMS/IRMSPropertyDiscount.type.d.ts +0 -0
  35. package/dist/types/RMS/IRMSRequirement.type.d.ts +0 -0
  36. package/dist/types/Room/IRoomGroup.type.d.ts +0 -0
  37. package/dist/types/index.d.ts +0 -0
  38. package/dist/utils/bookingTotal.d.ts +0 -0
  39. package/dist/utils/calculateFee.d.ts +7 -0
  40. package/dist/utils/feeTypes.d.ts +4 -0
  41. package/dist/utils/index.d.ts +0 -0
  42. package/dist/utils/nameof.d.ts +2 -0
  43. package/dist/utils/roomstayImageResize.d.ts +0 -0
  44. package/dist/utils/uppercaseString.d.ts +0 -0
  45. package/dist/web.js +0 -0
  46. package/package.json +1 -1
package/dist/index.d.ts CHANGED
File without changes
package/dist/node.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
@@ -0,0 +1,7 @@
1
+ export declare enum EFeeType {
2
+ PercentageOfBooking = "PercentageOfBooking",
3
+ FixedChargePerRoom = "FixedChargePerRoom",
4
+ NightlyChargePerRoom = "NightlyChargePerRoom",
5
+ FixedChargePerBooking = "FixedChargePerBooking",
6
+ DepositSurcharge = "DepositSurcharge"
7
+ }
@@ -0,0 +1,5 @@
1
+ import { EFeeType } from "./EFeeType.enum";
2
+ export interface IFee {
3
+ amount: number;
4
+ feeType: EFeeType;
5
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -14,6 +14,7 @@ export type IOverrideMessage = {
14
14
  BestRatePerksAlert: string;
15
15
  PreSignUp: string;
16
16
  PostSignUp: string;
17
+ pricesIncludeFeesMessage?: string;
17
18
  };
18
19
  export type IHotelOverrides = {
19
20
  hideByLine?: boolean;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ import { IFee } from '../types/index.js';
2
+ interface FeeCalculationParams {
3
+ baseAmount?: number;
4
+ numberOfNights?: number;
5
+ }
6
+ export declare function calculateFeeAmount(fee: IFee, params?: FeeCalculationParams): number;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ import { IFee } from '../types/index.js';
2
+ export declare function getFilteredBookingFees<T extends IFee>(fees: T[]): T[];
3
+ export declare function getFilteredBookingRateFees<T extends IFee>(fees: T[]): T[];
4
+ export declare function getFilteredBookingAddonFees<T extends IFee>(fees: T[]): T[];
File without changes
@@ -0,0 +1,2 @@
1
+ export declare const nameof: <T>(name: Extract<keyof T, string>) => string;
2
+ export declare const nameofField: <T>(instance: T, name: keyof T) => string;
File without changes
File without changes
package/dist/web.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [