@roomstay/core 0.1.74 → 0.1.75-0
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/dist/node.js +1 -1
- package/dist/types/Addon/Addon.enum.d.ts +14 -0
- package/dist/types/Addon/Addon.type.d.ts +24 -0
- package/dist/types/Availability/Availability.types.d.ts +1 -0
- package/dist/types/Booking/IBookingPayment.type.d.ts +8 -1
- package/dist/types/GiftCards/GiftCard.types.d.ts +89 -2
- package/dist/types/GiftCards/GiftCardLogs.enum.d.ts +1 -1
- package/dist/types/Maintenance/IMaintenanceStatus.type.d.ts +4 -1
- package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +5 -0
- package/dist/types/index.d.ts +12 -2
- package/dist/utils/roundMoney.d.ts +11 -1
- package/dist/web.js +1 -1
- package/package.json +1 -1
- package/dist/node.js.LICENSE.txt +0 -7
- package/dist/node.js.map +0 -1
- package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +0 -11
- package/dist/types/Booking/IBookingStatus.type.d.ts +0 -5
- package/dist/types/Booking/IPrice.type.d.ts +0 -7
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +0 -15
- package/dist/types/components/DateRangePicker/DateRangePicker.type.d.ts +0 -8
- package/dist/types/components/DateRangePicker/DateRangePickerContext.d.ts +0 -16
- package/dist/types/components/DateRangePicker/DateRangePickerDay.d.ts +0 -22
- package/dist/types/components/DateRangePicker/DateRangePickerDays.d.ts +0 -7
- package/dist/types/components/DateRangePicker/DateRangePickerMonth.d.ts +0 -8
- package/dist/types/components/DateRangePicker/FloatingDateRangePicker.d.ts +0 -25
- package/dist/types/components/DateRangePicker/index.d.ts +0 -3
- package/dist/types/components/Icon/Icon.d.ts +0 -88
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/Overlay/Overlay.d.ts +0 -20
- package/dist/types/components/Overlay/index.d.ts +0 -1
- package/dist/types/components/Portal/Portal.d.ts +0 -7
- package/dist/types/components/Portal/index.d.ts +0 -1
- package/dist/types/components/Text/Text.d.ts +0 -15
- package/dist/types/components/Text/Text.type.d.ts +0 -14
- package/dist/types/components/Text/index.d.ts +0 -2
- package/dist/types/components/animations/Fade.d.ts +0 -13
- package/dist/types/components/animations/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +0 -6
- package/dist/types/hooks/BodyClickHook.d.ts +0 -8
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/index.node.d.ts +0 -2
- package/dist/types/index.web.d.ts +0 -4
- package/dist/types/models/Client/Hotel/WeekdayStartsOn.types.d.ts +0 -4
- package/dist/types/models/Client/Hotel/index.d.ts +0 -1
- package/dist/types/models/Client/index.d.ts +0 -1
- package/dist/types/models/index.d.ts +0 -1
- package/dist/types/stories/DateRangePicker.stories.d.ts +0 -8
- package/dist/types/stories/FloatingDateRangePicker.stories.d.ts +0 -5
- package/dist/types/types/Booking/IBookingCreateErrorResponse.d.ts +0 -11
- package/dist/types/types/Booking/IBookingPayment.type.d.ts +0 -42
- package/dist/types/types/Booking/IBookingQuote.type.d.ts +0 -29
- package/dist/types/types/Booking/IBookingStatus.type.d.ts +0 -5
- package/dist/types/types/Booking/IPrice.type.d.ts +0 -7
- package/dist/types/types/Company/ECompanyProvider.enum.d.ts +0 -6
- package/dist/types/types/Company/IAdminCompany.type.d.ts +0 -31
- package/dist/types/types/Events/IRoomstayEvent.type.d.ts +0 -48
- package/dist/types/types/Hotel/EHotelPriceModel.enum.d.ts +0 -5
- package/dist/types/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +0 -4
- package/dist/types/types/Hotel/IAuxiliaryFilter.type.d.ts +0 -20
- package/dist/types/types/Hotel/IHotelColorScheme.type.d.ts +0 -11
- package/dist/types/types/Hotel/IHotelOverrides.type.d.ts +0 -18
- package/dist/types/types/Hotel/IHotelReplica.type.d.ts +0 -53
- package/dist/types/types/Hotel/IHotelService.type.d.ts +0 -6
- package/dist/types/types/Image/IRoomstayImage.type.d.ts +0 -8
- package/dist/types/types/Member/IRoomstayCognitoMember.type.d.ts +0 -4
- package/dist/types/types/Member/IRoomstayMember.type.d.ts +0 -17
- package/dist/types/types/Member/IRoomstayMemberBooking.type.d.ts +0 -28
- package/dist/types/types/Member/IRoomstayMemberBookingAddress.type.d.ts +0 -9
- package/dist/types/types/Member/IRoomstayMemberBookingItem.type.d.ts +0 -25
- package/dist/types/types/Member/IRoomstayMemberBookingProfile.type.d.ts +0 -11
- package/dist/types/types/Member/IRoomstayMemberCards.type.d.ts +0 -12
- package/dist/types/types/Member/ISession.type.d.ts +0 -4
- package/dist/types/types/Policies/EGuaranteePolicy.enum.d.ts +0 -5
- package/dist/types/types/RMS/ERMSDiscountType.enum.d.ts +0 -5
- package/dist/types/types/RMS/IRMSPropertyDiscount.type.d.ts +0 -28
- package/dist/types/types/RMS/IRMSRequirement.type.d.ts +0 -19
- package/dist/types/types/Room/IRoomGroup.type.d.ts +0 -11
- package/dist/types/types/index.d.ts +0 -56
- package/dist/types/utils/bookingTotal.d.ts +0 -7
- package/dist/types/utils/calendarHelper.d.ts +0 -16
- package/dist/types/utils/color.d.ts +0 -20
- package/dist/types/utils/index.node.d.ts +0 -2
- package/dist/types/utils/index.web.d.ts +0 -4
- package/dist/types/utils/roomstayImageResize.d.ts +0 -14
- package/dist/types/utils/uppercaseString.d.ts +0 -1
- package/dist/web.js.LICENSE.txt +0 -7
- package/dist/web.js.map +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IBookingStatus, IPrice, IRoomstayMemberBookingProfile } from "../../index.js";
|
|
2
|
-
export type IRoomstayMemberBookingItem = {
|
|
3
|
-
id: string;
|
|
4
|
-
roomCode: string;
|
|
5
|
-
roomName: string;
|
|
6
|
-
images: string[];
|
|
7
|
-
rateCode: string;
|
|
8
|
-
rateName: string;
|
|
9
|
-
adults: number;
|
|
10
|
-
children?: number;
|
|
11
|
-
profile: IRoomstayMemberBookingProfile;
|
|
12
|
-
comments: string[];
|
|
13
|
-
status: IBookingStatus;
|
|
14
|
-
isCancellable: boolean;
|
|
15
|
-
checkInDate: string;
|
|
16
|
-
checkOutDate: string;
|
|
17
|
-
nights: {
|
|
18
|
-
[date: string]: IPrice;
|
|
19
|
-
};
|
|
20
|
-
cancellationPolicy: string;
|
|
21
|
-
guaranteePolicy: string;
|
|
22
|
-
promoCode?: string;
|
|
23
|
-
cancellationPolicyLongDescription?: string;
|
|
24
|
-
guaranteePolicyLongDescription?: string;
|
|
25
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IRoomstayMemberBookingAddress } from "../../index.js";
|
|
2
|
-
export type IRoomstayMemberBookingProfile = {
|
|
3
|
-
title: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
middleName?: string;
|
|
6
|
-
lastName: string;
|
|
7
|
-
phone?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
marketingOptIn?: boolean;
|
|
10
|
-
address: IRoomstayMemberBookingAddress;
|
|
11
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These details will always be VGS tokenized strings, for use in the front end
|
|
3
|
-
*/
|
|
4
|
-
export interface IRoomstayMemberCards {
|
|
5
|
-
username: string;
|
|
6
|
-
cardId: string;
|
|
7
|
-
cardNumber: string;
|
|
8
|
-
expiry: string;
|
|
9
|
-
securityCode: string;
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ERMSDiscountType } from './ERMSDiscountType.enum';
|
|
2
|
-
export type IRMSPropertyDiscount = {
|
|
3
|
-
name: string;
|
|
4
|
-
hotelId: string;
|
|
5
|
-
rmsDiscountId: number;
|
|
6
|
-
description: string;
|
|
7
|
-
discountType: ERMSDiscountType;
|
|
8
|
-
amount?: {
|
|
9
|
-
amount: number;
|
|
10
|
-
};
|
|
11
|
-
percentage?: {
|
|
12
|
-
percentage: number;
|
|
13
|
-
noGreaterThan: number;
|
|
14
|
-
includePackage: boolean;
|
|
15
|
-
includeAdditionals: boolean;
|
|
16
|
-
appliesToTotalRate: boolean;
|
|
17
|
-
};
|
|
18
|
-
bogo?: {
|
|
19
|
-
buyXNights: number;
|
|
20
|
-
getXNights: number;
|
|
21
|
-
getXNightsCycles: number;
|
|
22
|
-
includeAdditionals: boolean;
|
|
23
|
-
};
|
|
24
|
-
availableToIbe: boolean;
|
|
25
|
-
minimumNightStay: number;
|
|
26
|
-
maximumNightStay: number;
|
|
27
|
-
availableToMembers: boolean;
|
|
28
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type IRMSRequirement = {
|
|
2
|
-
chargeDailyIncludeToDate: boolean;
|
|
3
|
-
chargeRequiredDaily: boolean;
|
|
4
|
-
code: string;
|
|
5
|
-
groupingId: number;
|
|
6
|
-
note: string;
|
|
7
|
-
sundryId: number;
|
|
8
|
-
unitPrice: number;
|
|
9
|
-
useSundryAmount: boolean;
|
|
10
|
-
feeType: string;
|
|
11
|
-
adultAmount: number;
|
|
12
|
-
childAmount: number;
|
|
13
|
-
infantAmount: number;
|
|
14
|
-
amount: number;
|
|
15
|
-
quantity: number;
|
|
16
|
-
requiredDaily: boolean;
|
|
17
|
-
id: number;
|
|
18
|
-
name: string;
|
|
19
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Booking Details
|
|
3
|
-
*/
|
|
4
|
-
export * from "./Booking/IPrice.type";
|
|
5
|
-
export * from "./Booking/IBookingStatus.type";
|
|
6
|
-
export * from "./Booking/IBookingPayment.type";
|
|
7
|
-
export * from './Booking/IBookingQuote.type';
|
|
8
|
-
export * from './Booking/IBookingCreateErrorResponse';
|
|
9
|
-
/**
|
|
10
|
-
* Company
|
|
11
|
-
*/
|
|
12
|
-
export * from './Company/IAdminCompany.type';
|
|
13
|
-
export * from './Company/ECompanyProvider.enum';
|
|
14
|
-
/**
|
|
15
|
-
* Hotel
|
|
16
|
-
*/
|
|
17
|
-
export * from "./Hotel/IHotelColorScheme.type";
|
|
18
|
-
export * from "./Hotel/IHotelReplica.type";
|
|
19
|
-
export * from "./Hotel/IHotelOverrides.type";
|
|
20
|
-
export * from "./Hotel/IHotelService.type";
|
|
21
|
-
export * from "./Hotel/EHotelPriceModel.enum";
|
|
22
|
-
export * from "./Hotel/EHotelWeekdayStartsOn.enum";
|
|
23
|
-
export * from './Hotel/IAuxiliaryFilter.type';
|
|
24
|
-
/**
|
|
25
|
-
* Room
|
|
26
|
-
*/
|
|
27
|
-
export * from './Room/IRoomGroup.type';
|
|
28
|
-
/**
|
|
29
|
-
* RMS
|
|
30
|
-
*/
|
|
31
|
-
export * from './RMS/IRMSPropertyDiscount.type';
|
|
32
|
-
export * from './RMS/ERMSDiscountType.enum';
|
|
33
|
-
export * from './RMS/IRMSRequirement.type';
|
|
34
|
-
/**
|
|
35
|
-
* Image
|
|
36
|
-
*/
|
|
37
|
-
export * from './Image/IRoomstayImage.type';
|
|
38
|
-
/**
|
|
39
|
-
* Member Details
|
|
40
|
-
*/
|
|
41
|
-
export * from "./Member/IRoomstayCognitoMember.type";
|
|
42
|
-
export * from "./Member/IRoomstayMember.type";
|
|
43
|
-
export * from "./Member/IRoomstayMemberBooking.type";
|
|
44
|
-
export * from "./Member/IRoomstayMemberBookingItem.type";
|
|
45
|
-
export * from "./Member/IRoomstayMemberBookingProfile.type";
|
|
46
|
-
export * from "./Member/IRoomstayMemberBookingAddress.type";
|
|
47
|
-
export * from "./Member/IRoomstayMemberCards.type";
|
|
48
|
-
export * from "./Member/ISession.type";
|
|
49
|
-
/**
|
|
50
|
-
* Policies
|
|
51
|
-
*/
|
|
52
|
-
export * from './Policies/EGuaranteePolicy.enum';
|
|
53
|
-
/**
|
|
54
|
-
* Roomstay Events
|
|
55
|
-
*/
|
|
56
|
-
export * from "./Events/IRoomstayEvent.type";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IRoomstayMemberBooking } from "../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Calculates the total AFTER tax of the booking.
|
|
4
|
-
*
|
|
5
|
-
* @param reservation IRoomstayMemberBooking
|
|
6
|
-
*/
|
|
7
|
-
export declare const calculateTotalForMemberBooking: (reservation: IRoomstayMemberBooking) => number;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import dayjs from "dayjs";
|
|
2
|
-
import { WeekdayStartsOn } from "@models/Client/Hotel/WeekdayStartsOn.types";
|
|
3
|
-
export declare const getLetterDaysOfWeek: (startsWeekOnDay: string) => string[];
|
|
4
|
-
export default class CalendarHelper {
|
|
5
|
-
/**
|
|
6
|
-
* Returns an array always divisible by 7,
|
|
7
|
-
*
|
|
8
|
-
* Essentially no matter what what month is given, this function will always return the same number of days;
|
|
9
|
-
* with each MOD 7 index representing the correct date.
|
|
10
|
-
*/
|
|
11
|
-
static getWeekPaddedMonthArrayForDate: (startWeekOnDay: WeekdayStartsOn, date: dayjs.Dayjs) => string[];
|
|
12
|
-
static getMonthArray: (date: dayjs.Dayjs) => dayjs.Dayjs[];
|
|
13
|
-
static getWeekFrom: (date: dayjs.Dayjs) => dayjs.Dayjs[];
|
|
14
|
-
static getWeekTo: (date: dayjs.Dayjs) => dayjs.Dayjs[];
|
|
15
|
-
static getDaysBetween: (startDate: dayjs.Dayjs, endDate: dayjs.Dayjs) => dayjs.Dayjs[];
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IHotelColorScheme } from "../index.js";
|
|
2
|
-
export declare enum Color {
|
|
3
|
-
Accent = "var(--rs-color-accent-1)",
|
|
4
|
-
Accent2 = "var(--rs-color-accent-2)",
|
|
5
|
-
Accent3 = "var(--rs-color-accent-3)",
|
|
6
|
-
Success = "var(--rs-color-success)",
|
|
7
|
-
SuccessTint = "var(--rs-color-success-tint)",
|
|
8
|
-
Danger = "var(--rs-color-danger)",
|
|
9
|
-
Warning = "var(--rs-color-warning)",
|
|
10
|
-
Alert = "var(--rs-color-alert)",
|
|
11
|
-
Graphite = "var(--rs-color-graphite)",
|
|
12
|
-
DarkGrey = "var(--rs-color-dark-grey)",
|
|
13
|
-
Grey = "var(--rs-color-grey)",
|
|
14
|
-
LightGrey = "var(--rs-color-light-grey)",
|
|
15
|
-
Snow = "var(--rs-color-snow)",
|
|
16
|
-
Navy = "var(--rs-color-navy)",
|
|
17
|
-
White = "var(--rs-color-white)"
|
|
18
|
-
}
|
|
19
|
-
/** Returns the style tag content for overriding default colors. Insert this in an existing style tag, you'll need to specify your own target */
|
|
20
|
-
export declare const getAccentOverrideStyleContent: (color: IHotelColorScheme) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ERoomstayImageSize } from '../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Converts an Image URL to a resized image URL.
|
|
4
|
-
*
|
|
5
|
-
* Right now we can only manipulate Roomstay hosted images in S3, so only where the source
|
|
6
|
-
* image URL contains cdn.app.roomstay.io can we add the resize parameters.
|
|
7
|
-
*
|
|
8
|
-
* This function will simply pass through any URL not matching the criteria
|
|
9
|
-
*
|
|
10
|
-
* @param url string
|
|
11
|
-
* @param size ImageSize
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare const resizeRoomstayImageUrl: (url: string, size: ERoomstayImageSize) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function uppercaseString(toUppercase: string): string;
|