@roomstay/core 0.1.28 → 0.1.30
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/.DS_Store +0 -0
- package/dist/dist/css/icons.min.css +1 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js.map +1 -1
- package/dist/shared.d.ts +5 -0
- package/dist/types/Company/IAdminCompanyUser.type.d.ts +1 -0
- package/dist/types/Hotel/IHotelColorScheme.type.d.ts +15 -0
- package/dist/types/RMS/IRMSPropertyDiscount.type.d.ts +5 -0
- package/dist/types/stories/DateRangePicker.stories.d.ts +1 -1
- package/dist/types/stories/FloatingDateRangePicker.stories.d.ts +1 -1
- package/dist/types/types/Booking/IBookingPayment.type.d.ts +2 -12
- package/dist/types/types/index.d.ts +0 -26
- package/dist/web.d.ts +1 -0
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/types/Booking/IBookingCreateErrorResponse.d.ts +0 -11
- package/dist/types/types/Booking/IBookingQuote.type.d.ts +0 -29
- 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/Hotel/IAuxiliaryFilter.type.d.ts +0 -20
- package/dist/types/types/Image/IRoomstayImage.type.d.ts +0 -8
- 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/utils/roomstayImageResize.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the response body that comes down if a booking fails anywhere in the booking flow.
|
|
3
|
-
*
|
|
4
|
-
* Object will contain a public message only, with partial reservation data to be able to attempt to "resume" the booking
|
|
5
|
-
*/
|
|
6
|
-
export type IBookingCreateErrorResponse = {
|
|
7
|
-
canRetryPayment: boolean;
|
|
8
|
-
isPaymentTaken: boolean;
|
|
9
|
-
publicMessage: string;
|
|
10
|
-
roomstayId: string;
|
|
11
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type IBookingQuoteRequest = {
|
|
2
|
-
rows: {
|
|
3
|
-
rowId: string;
|
|
4
|
-
rateCode: string;
|
|
5
|
-
roomCode: string;
|
|
6
|
-
adults?: number;
|
|
7
|
-
children?: number;
|
|
8
|
-
infants?: number;
|
|
9
|
-
promoCode?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Example format "2023-10-22 10:00:00"
|
|
12
|
-
*/
|
|
13
|
-
checkIn: string;
|
|
14
|
-
/**
|
|
15
|
-
* Example format "2023-10-22 10:00:00"
|
|
16
|
-
*/
|
|
17
|
-
checkOut: string;
|
|
18
|
-
memberNumber?: string;
|
|
19
|
-
}[];
|
|
20
|
-
};
|
|
21
|
-
export type IBookingQuoteResponse = {
|
|
22
|
-
rows: {
|
|
23
|
-
rowId: string;
|
|
24
|
-
totalRate: number;
|
|
25
|
-
totalDeposit: number;
|
|
26
|
-
totalFees: number;
|
|
27
|
-
quoteId: number;
|
|
28
|
-
}[];
|
|
29
|
-
} | null;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { ECompanyProvider } from '../../index.js';
|
|
2
|
-
export interface IAdminCompany {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
provider: ECompanyProvider;
|
|
6
|
-
providerLogin: string;
|
|
7
|
-
providerPassword: string;
|
|
8
|
-
hotels: {
|
|
9
|
-
name: string;
|
|
10
|
-
label: string;
|
|
11
|
-
id: string;
|
|
12
|
-
rms?: {
|
|
13
|
-
clientId: number;
|
|
14
|
-
clientPassword: string;
|
|
15
|
-
useTrainingDb: boolean;
|
|
16
|
-
apiUrl: string;
|
|
17
|
-
};
|
|
18
|
-
}[];
|
|
19
|
-
}
|
|
20
|
-
export type IAdminGetCompaiesResponse = IAdminCompany[];
|
|
21
|
-
/** What the API expects */
|
|
22
|
-
export type IAdminFetchRMSHotelsRequest = {
|
|
23
|
-
/** Passing this field will apply changes */
|
|
24
|
-
confirm?: boolean;
|
|
25
|
-
};
|
|
26
|
-
/** Response type of the Fetch RMS hotels endpoint. This endpoint will contact RMS and fetch Hotel's details directly from their database.
|
|
27
|
-
* On initial call the data won't be applied, you must call this API again and set {@link IAdminFetchRMSHotelsRequest.confirm} to true to apply the data */
|
|
28
|
-
export type IAdminFetchRMSHotelsResponse = {
|
|
29
|
-
/** If the hotels have in fact been synced, this will be true */
|
|
30
|
-
hasConfirmed: boolean;
|
|
31
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These filters can be applied to room groups currently,
|
|
3
|
-
* they add a way to add custom props on rooms, that in turn let you filter
|
|
4
|
-
* them in the front end further
|
|
5
|
-
*/
|
|
6
|
-
export type IAuxiliaryFilter = {
|
|
7
|
-
type: 'select';
|
|
8
|
-
/**
|
|
9
|
-
* If the target value can have multiple values specified (i.e if room can both have "tend", and "caravan" as a type)
|
|
10
|
-
*/
|
|
11
|
-
allowSourceMultiple?: boolean;
|
|
12
|
-
/** If a room is selected with this value, require that the user enters the specific value at checkout */
|
|
13
|
-
requireInput?: boolean;
|
|
14
|
-
/** If set to true, and user decides to filter by 3rd entry, 1st & 2nd also works */
|
|
15
|
-
includeAllAbove: boolean;
|
|
16
|
-
options: string[] | {
|
|
17
|
-
value: string | number;
|
|
18
|
-
label: string;
|
|
19
|
-
}[];
|
|
20
|
-
};
|
|
@@ -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,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;
|