@roomstay/core 0.1.80 → 0.2.0-1
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/browser/index.js +830 -768
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +8 -8
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +830 -768
- package/dist/node/index.mjs.map +1 -1
- package/dist/types/index.d.ts +3 -140
- package/dist/types/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts +28 -0
- package/dist/types/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts.map +1 -1
- package/dist/types/types/AnalyticsEvents/IRoomstayEventData.type.d.ts +27 -2
- package/dist/types/types/AnalyticsEvents/IRoomstayEventData.type.d.ts.map +1 -1
- package/dist/types/types/AnalyticsEvents/MetaCapiTransformer.d.ts +0 -1
- package/dist/types/types/AnalyticsEvents/MetaCapiTransformer.d.ts.map +1 -1
- package/dist/types/types/Availability/Availability.types.d.ts +1 -1
- package/dist/types/types/Booking/IBookingExtraFields.type.d.ts +13 -0
- package/dist/types/types/Booking/IBookingExtraFields.type.d.ts.map +1 -1
- package/dist/types/types/Booking/IBookingPayment.type.d.ts +9 -0
- package/dist/types/types/Booking/IBookingPayment.type.d.ts.map +1 -1
- package/dist/types/types/Booking/PlaceBooking.types.d.ts +2 -2
- package/dist/types/types/Booking/PlaceBooking.types.d.ts.map +1 -1
- package/dist/types/types/Company/IAdminCompany.type.d.ts +1 -1
- package/dist/types/types/Hotel/EIntegration.enum.d.ts +2 -1
- package/dist/types/types/Hotel/EIntegration.enum.d.ts.map +1 -1
- package/dist/types/types/Hotel/IHotelReplica.type.d.ts +1 -1
- package/dist/types/{Member → types/Member}/EMembershipProvider.type.d.ts +1 -0
- package/dist/types/types/Member/EMembershipProvider.type.d.ts.map +1 -0
- package/dist/types/types/Member/IRoomstayMember.type.d.ts +1 -1
- package/dist/types/types/Member/IRoomstayMemberBooking.type.d.ts +1 -1
- package/dist/types/types/Member/IRoomstayMemberBookingItem.type.d.ts +1 -1
- package/dist/types/types/Member/IRoomstayMemberBookingProfile.type.d.ts +1 -1
- package/dist/types/types/RMS/ERMSSyncStrategy.enum.d.ts +1 -0
- package/dist/types/types/RMS/ERMSSyncStrategy.enum.d.ts.map +1 -1
- package/dist/types/{RMS → types/RMS}/RMSGuestDTO.type.d.ts +1 -0
- package/dist/types/types/RMS/RMSGuestDTO.type.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/utils/bookingTotal.d.ts +1 -1
- package/dist/types/utils/calculateFee.d.ts +1 -1
- package/dist/types/utils/feeTypes.d.ts +1 -1
- package/dist/types/utils/roomstayImageResize.d.ts +1 -1
- package/package.json +15 -11
- package/dist/index.d.ts +0 -2
- package/dist/node.js +0 -1
- package/dist/types/Addons/Addon.enum.d.ts +0 -2
- package/dist/types/Addons/Addon.types.d.ts +0 -55
- package/dist/types/Analytics/IBigQueryResults.type.d.ts +0 -45
- package/dist/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts +0 -92
- package/dist/types/AnalyticsEvents/IAnalyticsSession.type.d.ts +0 -20
- package/dist/types/AnalyticsEvents/IRoomstayEventData.type.d.ts +0 -90
- package/dist/types/AnalyticsEvents/MetaCapiTransformer.d.ts +0 -20
- package/dist/types/Api/Reservations.type.d.ts +0 -84
- package/dist/types/Api/RoomNightRate.type.d.ts +0 -7
- package/dist/types/Availability/Availability.types.d.ts +0 -121
- package/dist/types/Booking/ConfirmBooking.types.d.ts +0 -21
- package/dist/types/Booking/EBooking.types.d.ts +0 -12
- package/dist/types/Booking/GetBooking.types.d.ts +0 -7
- package/dist/types/Booking/IBookingCreateErrorResponse.type.d.ts +0 -13
- package/dist/types/Booking/IBookingExtraFields.type.d.ts +0 -18
- package/dist/types/Booking/IBookingPayment.type.d.ts +0 -114
- package/dist/types/Booking/IBookingQuote.type.d.ts +0 -30
- package/dist/types/Booking/ICommonQueryParameters.type.d.ts +0 -3
- package/dist/types/Booking/Itinerary.types.d.ts +0 -99
- package/dist/types/Booking/PencilReservation.types.d.ts +0 -19
- package/dist/types/Booking/PlaceBooking.types.d.ts +0 -89
- package/dist/types/Company/ECompanyProvider.enum.d.ts +0 -8
- package/dist/types/Company/IAdminCompany.type.d.ts +0 -46
- package/dist/types/Company/IAdminCompanyUser.type.d.ts +0 -15
- package/dist/types/Events/ERoomstayEventSource.enum.d.ts +0 -4
- package/dist/types/Events/IRoomstayEvent.type.d.ts +0 -50
- package/dist/types/Fees/EFeeType.enum.d.ts +0 -7
- package/dist/types/Fees/IFee.type.d.ts +0 -11
- package/dist/types/Fees/IFeeConfigurationOptions.type.d.ts +0 -6
- package/dist/types/General/Format.types.d.ts +0 -1
- package/dist/types/General/HttpMethod.enum.d.ts +0 -9
- package/dist/types/General/IMessage.type.d.ts +0 -6
- package/dist/types/General/Pagination.types.d.ts +0 -20
- package/dist/types/General/Warning.type.d.ts +0 -14
- package/dist/types/GiftCards/GiftCard.types.d.ts +0 -345
- package/dist/types/GiftCards/GiftCardAuth.types.d.ts +0 -31
- package/dist/types/GiftCards/GiftCardLogs.enum.d.ts +0 -34
- package/dist/types/Hotel/EHotelAddressRequirement.enum.d.ts +0 -5
- package/dist/types/Hotel/EHotelPriceModel.enum.d.ts +0 -5
- package/dist/types/Hotel/EHotelStateFieldConfiguration.enum.d.ts +0 -5
- package/dist/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +0 -4
- package/dist/types/Hotel/EIntegration.enum.d.ts +0 -10
- package/dist/types/Hotel/IAuxiliaryFilter.type.d.ts +0 -24
- package/dist/types/Hotel/IHotelColorScheme.type.d.ts +0 -29
- package/dist/types/Hotel/IHotelOverrides.type.d.ts +0 -28
- package/dist/types/Hotel/IHotelReplica.type.d.ts +0 -56
- package/dist/types/Hotel/IHotelService.type.d.ts +0 -6
- package/dist/types/Image/IRoomstayImage.type.d.ts +0 -8
- package/dist/types/Maintenance/IMaintenanceStatus.type.d.ts +0 -26
- package/dist/types/Media/IMedia.type.d.ts +0 -10
- package/dist/types/Member/IMember.type.d.ts +0 -7
- package/dist/types/Member/IMemberVerification.type.d.ts +0 -10
- package/dist/types/Member/IRoomstayCognitoMember.type.d.ts +0 -4
- package/dist/types/Member/IRoomstayMember.type.d.ts +0 -18
- package/dist/types/Member/IRoomstayMemberBooking.type.d.ts +0 -28
- package/dist/types/Member/IRoomstayMemberBookingAddress.type.d.ts +0 -9
- package/dist/types/Member/IRoomstayMemberBookingItem.type.d.ts +0 -25
- package/dist/types/Member/IRoomstayMemberBookingProfile.type.d.ts +0 -11
- package/dist/types/Member/IRoomstayMemberCards.type.d.ts +0 -12
- package/dist/types/Member/IRoomstayMemberJWTData.type.d.ts +0 -3
- package/dist/types/Member/IRoomstayMemberLoyalty.type.d.ts +0 -16
- package/dist/types/Member/ISession.type.d.ts +0 -4
- package/dist/types/Newbook/ENewbookRegion.enum.d.ts +0 -7
- package/dist/types/Newbook/ENewbookSyncStrategy.enum.d.ts +0 -5
- package/dist/types/Newbook/index.d.ts +0 -2
- package/dist/types/OHIP/IOHIPConfiguration.types.d.ts +0 -12
- package/dist/types/OHIP/index.d.ts +0 -1
- package/dist/types/PMSSync/EPMSSyncStatus.enum.d.ts +0 -8
- package/dist/types/PMSSync/IPMSSyncResponse.type.d.ts +0 -10
- package/dist/types/PMSSync/index.d.ts +0 -17
- package/dist/types/Package/Package.types.d.ts +0 -104
- package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +0 -6
- package/dist/types/PromoCode/EPromoCodeDiscountType.enum.d.ts +0 -5
- package/dist/types/PromoCode/PromoCodeStayDateRangeType.enum.d.ts +0 -11
- package/dist/types/RMS/ERMSAuthSyncHistoryStatus.type.d.ts +0 -8
- package/dist/types/RMS/ERMSDiscountType.enum.d.ts +0 -6
- package/dist/types/RMS/ERMSSyncStrategy.enum.d.ts +0 -39
- package/dist/types/RMS/IRMSPropertyDiscount.type.d.ts +0 -33
- package/dist/types/RMS/IRMSRequirement.type.d.ts +0 -20
- package/dist/types/RMS/IRMSSyncResponse.type.d.ts +0 -8
- package/dist/types/RMS/RMSBookingSource.type.d.ts +0 -7
- package/dist/types/Room/IRoomGroup.type.d.ts +0 -18
- package/dist/utils/TotalCalculator.d.ts +0 -72
- package/dist/utils/bookingTotal.d.ts +0 -7
- package/dist/utils/calculateFee.d.ts +0 -10
- package/dist/utils/feeTypes.d.ts +0 -5
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/reflection.d.ts +0 -9
- package/dist/utils/roomstayImageResize.d.ts +0 -14
- package/dist/utils/roundMoney.d.ts +0 -10
- package/dist/utils/typeUtils.d.ts +0 -1
- package/dist/utils/uppercaseString.d.ts +0 -1
- package/dist/utils/zodUtils.d.ts +0 -19
- package/dist/web.js +0 -1
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Warning } from '../index.js';
|
|
2
|
-
import { IItemisedBookingFeeResponse } from '../Booking/Itinerary.types';
|
|
3
|
-
import { EGuaranteePolicyDepositMode } from '../Policies/EGuaranteePolicy.enum';
|
|
4
|
-
import { EPromoCodeDiscountType } from '../PromoCode/EPromoCodeDiscountType.enum';
|
|
5
|
-
export type IAvailability = {
|
|
6
|
-
roomTypes: {
|
|
7
|
-
[roomTypeCode: string]: IRoomType;
|
|
8
|
-
};
|
|
9
|
-
ratePlans: {
|
|
10
|
-
[ratePlanCode: string]: IRatePlan;
|
|
11
|
-
};
|
|
12
|
-
roomNights: {
|
|
13
|
-
[date: string]: {
|
|
14
|
-
[roomTypeCode: string]: IRoomNight;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
/** @deprecated */
|
|
18
|
-
guaranteePolicies: {
|
|
19
|
-
[policyCode: string]: string;
|
|
20
|
-
};
|
|
21
|
-
guaranteePolicyDetails?: {
|
|
22
|
-
[policyCode: string]: IAvailabilityGuaranteePolicyDetails;
|
|
23
|
-
};
|
|
24
|
-
cancelPolicies: {
|
|
25
|
-
[policyCode: string]: string;
|
|
26
|
-
};
|
|
27
|
-
warnings: Warning<string>[];
|
|
28
|
-
alternativeAvailability?: IAlternativeAvailability;
|
|
29
|
-
promoCodeDetails?: IPromoCodeDetails | null;
|
|
30
|
-
hasMinStayUpsellOpportunities?: boolean;
|
|
31
|
-
};
|
|
32
|
-
export type IAlternativeAvailability = {
|
|
33
|
-
checkInDate: string;
|
|
34
|
-
checkOutDate: string;
|
|
35
|
-
availability: IAvailability;
|
|
36
|
-
};
|
|
37
|
-
export type IAvailabilityGuaranteePolicyDetails = {
|
|
38
|
-
code: string;
|
|
39
|
-
name: string;
|
|
40
|
-
longDescription: string;
|
|
41
|
-
depositMode: EGuaranteePolicyDepositMode;
|
|
42
|
-
depositPercentage?: number;
|
|
43
|
-
hide: boolean;
|
|
44
|
-
};
|
|
45
|
-
export type IRoomType = {
|
|
46
|
-
name: string;
|
|
47
|
-
shortDescription: string;
|
|
48
|
-
longDescription: string;
|
|
49
|
-
imageUrls: string[];
|
|
50
|
-
occupancy: number;
|
|
51
|
-
roomGroupId?: string | null;
|
|
52
|
-
auxiliaryValues?: {
|
|
53
|
-
[auxiliaryFilterId: string]: string[];
|
|
54
|
-
};
|
|
55
|
-
order: number;
|
|
56
|
-
doNotUpsell: boolean;
|
|
57
|
-
};
|
|
58
|
-
export type IRatePlan = {
|
|
59
|
-
name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
longDescription?: string | null;
|
|
62
|
-
guaranteeCode: string;
|
|
63
|
-
cancelPolicyCode: string;
|
|
64
|
-
promoCode?: string | null;
|
|
65
|
-
promoCodeName?: string | null;
|
|
66
|
-
mealsIncluded: {
|
|
67
|
-
breakfast: boolean;
|
|
68
|
-
lunch: boolean;
|
|
69
|
-
dinner: boolean;
|
|
70
|
-
mealPlan: string | undefined;
|
|
71
|
-
};
|
|
72
|
-
rateOverrides: IRateOverride[];
|
|
73
|
-
nightsToDiscount?: number | null;
|
|
74
|
-
minNightStayOverride?: number | null;
|
|
75
|
-
isUpsellRate?: boolean;
|
|
76
|
-
isMemberOnly?: boolean;
|
|
77
|
-
artificialDiscountPercent: number | null;
|
|
78
|
-
artificialDiscountAmount: number | null;
|
|
79
|
-
freeChildrenIncluded: number;
|
|
80
|
-
};
|
|
81
|
-
export type IPromoCodeDetails = {
|
|
82
|
-
code: string;
|
|
83
|
-
oneTimeUseOnly: boolean;
|
|
84
|
-
discountType: EPromoCodeDiscountType;
|
|
85
|
-
discountAmount: number;
|
|
86
|
-
applyToAddons: boolean;
|
|
87
|
-
};
|
|
88
|
-
export type IRoomNight = {
|
|
89
|
-
available: number;
|
|
90
|
-
lowestPrice: number;
|
|
91
|
-
rates: {
|
|
92
|
-
[ratePlanCode: string]: IRoomNightRatePlan;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export type IRoomNightRatePlan = {
|
|
96
|
-
cost: number;
|
|
97
|
-
discount: number;
|
|
98
|
-
tax: number;
|
|
99
|
-
fee: number;
|
|
100
|
-
total: number;
|
|
101
|
-
fees?: IItemisedBookingFeeResponse[];
|
|
102
|
-
};
|
|
103
|
-
export type IRateOverride = {
|
|
104
|
-
name: string;
|
|
105
|
-
shortDescription: string;
|
|
106
|
-
longDescription: string;
|
|
107
|
-
enabledPerDay: IRateLabelsByDay | null;
|
|
108
|
-
startDate: string;
|
|
109
|
-
endDate: string | null;
|
|
110
|
-
queryStartDate: string | null;
|
|
111
|
-
queryEndDate: string | null;
|
|
112
|
-
};
|
|
113
|
-
export type IRateLabelsByDay = {
|
|
114
|
-
Monday: boolean;
|
|
115
|
-
Tuesday: boolean;
|
|
116
|
-
Wednesday: boolean;
|
|
117
|
-
Thursday: boolean;
|
|
118
|
-
Friday: boolean;
|
|
119
|
-
Saturday: boolean;
|
|
120
|
-
Sunday: boolean;
|
|
121
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IRoomstayMemberJWTData } from '../Member/IRoomstayMemberJWTData.type';
|
|
2
|
-
import { ICommonQueryParameters } from './ICommonQueryParameters.type';
|
|
3
|
-
import { ItineraryResponse } from './Itinerary.types';
|
|
4
|
-
export type IConfirmBookingRequest = {
|
|
5
|
-
reservationIds: string[];
|
|
6
|
-
itineraryId: string;
|
|
7
|
-
planpayCheckoutId?: string;
|
|
8
|
-
paymentId?: string;
|
|
9
|
-
roomstayId?: string;
|
|
10
|
-
frontendMember?: IRoomstayMemberJWTData;
|
|
11
|
-
source?: 'External' | 'Frontend' | 'Admin';
|
|
12
|
-
isBlocking?: boolean;
|
|
13
|
-
} & ICommonQueryParameters;
|
|
14
|
-
export type IConfirmBookingResponse = ItineraryResponse;
|
|
15
|
-
export type ICancelBookingRequest = {
|
|
16
|
-
email?: string;
|
|
17
|
-
reservationId: string;
|
|
18
|
-
frontendMember?: IRoomstayMemberJWTData;
|
|
19
|
-
companyUserId?: number;
|
|
20
|
-
cancellationReason?: string;
|
|
21
|
-
} & ICommonQueryParameters;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum EBookingStatus {
|
|
2
|
-
Pending = "Pending",
|
|
3
|
-
Processing = "Processing",
|
|
4
|
-
Committed = "Committed",
|
|
5
|
-
Cancelled = "Cancelled",
|
|
6
|
-
Reverted = "Reverted"
|
|
7
|
-
}
|
|
8
|
-
export declare enum EBookingFlow {
|
|
9
|
-
Default = "Default",
|
|
10
|
-
PreCheckoutPencil = "PreCheckoutPencil",
|
|
11
|
-
PostCheckoutPencil = "PostCheckoutPencil"
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ICommonQueryParameters } from './ICommonQueryParameters.type';
|
|
2
|
-
import { ItineraryResponse } from './Itinerary.types';
|
|
3
|
-
export type IGetBookingRequest = {
|
|
4
|
-
email?: string;
|
|
5
|
-
reservationId: string;
|
|
6
|
-
} & ICommonQueryParameters;
|
|
7
|
-
export type IGetBookingResponse = ItineraryResponse;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IPaymentCheckoutDetails } from './IBookingPayment.type';
|
|
2
|
-
/**
|
|
3
|
-
* This is the response body that comes down if a booking fails anywhere in the booking flow.
|
|
4
|
-
*
|
|
5
|
-
* Object will contain a public message only, with partial reservation data to be able to attempt to "resume" the booking
|
|
6
|
-
*/
|
|
7
|
-
export type IBookingCreateErrorResponse = {
|
|
8
|
-
canRetryPayment: boolean;
|
|
9
|
-
isPaymentTaken: boolean;
|
|
10
|
-
paymentRequired?: IPaymentCheckoutDetails;
|
|
11
|
-
publicMessage: string;
|
|
12
|
-
roomstayId: string;
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum EBookingCustomFieldFormat {
|
|
2
|
-
Number = "number",
|
|
3
|
-
Text = "text",
|
|
4
|
-
Date = "date"
|
|
5
|
-
}
|
|
6
|
-
export type IBookingCustomFields = {
|
|
7
|
-
externalId: number;
|
|
8
|
-
label: string;
|
|
9
|
-
value: string;
|
|
10
|
-
format: EBookingCustomFieldFormat;
|
|
11
|
-
};
|
|
12
|
-
export type IBookingExtraFields = {
|
|
13
|
-
perRow: {
|
|
14
|
-
childAges?: number[];
|
|
15
|
-
}[];
|
|
16
|
-
customFields?: IBookingCustomFields[];
|
|
17
|
-
eta?: string;
|
|
18
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
export declare enum EBookingPaymentMethod {
|
|
2
|
-
Card = "Card",
|
|
3
|
-
SavedCard = "SavedCard",
|
|
4
|
-
Planpay = "Planpay",
|
|
5
|
-
Adyen = "Adyen",
|
|
6
|
-
Afterpay = "Afterpay",
|
|
7
|
-
PCIBookingCard = "PCIBookingCard",
|
|
8
|
-
TrueRewards = "TrueRewards"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* This enum is used to determine which payment processor to use for the booking.
|
|
12
|
-
*
|
|
13
|
-
* Usually only applies if the payment method is Card, SavedCard, or PCIBookingCard.
|
|
14
|
-
*
|
|
15
|
-
* Other payment methods will generate their own checkout flow that will differ from this.
|
|
16
|
-
*/
|
|
17
|
-
export declare enum EHotelCardProcessor {
|
|
18
|
-
Passthrough = "Passthrough",
|
|
19
|
-
Adyen = "Adyen",
|
|
20
|
-
Till = "Till",
|
|
21
|
-
RMSPay = "RMSPay",
|
|
22
|
-
Windcave = "Windcave",
|
|
23
|
-
Mastercard = "Mastercard",
|
|
24
|
-
Stripe = "Stripe",
|
|
25
|
-
PayPal = "PayPal"
|
|
26
|
-
}
|
|
27
|
-
export declare enum EPlanpayBookingStatus {
|
|
28
|
-
Unknown = "unknown",// incase plan.deposit.status is unavailable
|
|
29
|
-
Unpaid = "unpaid",
|
|
30
|
-
Accepted = "accepted",
|
|
31
|
-
Cancelled = "cancelled",
|
|
32
|
-
Refunded = "refunded",
|
|
33
|
-
Rejected = "rejected"
|
|
34
|
-
}
|
|
35
|
-
export declare const PCIBookingCardProcessorTypes: any[];
|
|
36
|
-
export type PCIBookingCardProcessorType = undefined;
|
|
37
|
-
export type IBookingPaymentTokenizedCard = {
|
|
38
|
-
Type: string;
|
|
39
|
-
Number: string;
|
|
40
|
-
Expiry: number;
|
|
41
|
-
CVV: string;
|
|
42
|
-
Name: string;
|
|
43
|
-
};
|
|
44
|
-
type IPCIBookingCardNotificationData = {
|
|
45
|
-
CaptureCardRequestID: string;
|
|
46
|
-
CaptureCardRequestStatus: string;
|
|
47
|
-
CardUri: string;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Booking payment attached to a booking.
|
|
51
|
-
*
|
|
52
|
-
* Could be either Card or Planpay
|
|
53
|
-
*/
|
|
54
|
-
export type IBookingPayment = {
|
|
55
|
-
Method: EBookingPaymentMethod;
|
|
56
|
-
SavedCardID?: string;
|
|
57
|
-
PlanpayCheckoutId?: string;
|
|
58
|
-
PaymentCard?: IBookingPaymentTokenizedCard;
|
|
59
|
-
PCICardDetails?: IPCIBookingCardNotificationData;
|
|
60
|
-
RedirectUrl?: string;
|
|
61
|
-
SplitPaymentAmount?: number;
|
|
62
|
-
};
|
|
63
|
-
export type IPaymentCheckoutDetails = {
|
|
64
|
-
planpay?: {
|
|
65
|
-
id: string;
|
|
66
|
-
checkoutWorkflow: {
|
|
67
|
-
type: string;
|
|
68
|
-
id: string;
|
|
69
|
-
scriptUrl: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
external?: {
|
|
73
|
-
id: string;
|
|
74
|
-
redirectUrl: string;
|
|
75
|
-
};
|
|
76
|
-
adyen?: {
|
|
77
|
-
roomstayId: string;
|
|
78
|
-
sessionData: string;
|
|
79
|
-
sessionId: string;
|
|
80
|
-
clientKey: string;
|
|
81
|
-
isLive: boolean;
|
|
82
|
-
currency: string;
|
|
83
|
-
amount: string;
|
|
84
|
-
countryCode: string;
|
|
85
|
-
};
|
|
86
|
-
mastercard?: {
|
|
87
|
-
sessionId: string;
|
|
88
|
-
paymentMode: 'EmbeddedPage' | 'PaymentPage';
|
|
89
|
-
baseUrl: string;
|
|
90
|
-
};
|
|
91
|
-
stripe?: {
|
|
92
|
-
clientSecret: string;
|
|
93
|
-
publishableApiKey: string;
|
|
94
|
-
successUrl: string;
|
|
95
|
-
};
|
|
96
|
-
paypal?: {
|
|
97
|
-
orderId: string;
|
|
98
|
-
clientId: string;
|
|
99
|
-
successUrl: string;
|
|
100
|
-
currencyCode: string;
|
|
101
|
-
};
|
|
102
|
-
windcave?: {
|
|
103
|
-
links: {
|
|
104
|
-
href: string;
|
|
105
|
-
rel: string;
|
|
106
|
-
method: string;
|
|
107
|
-
}[];
|
|
108
|
-
successUrl: string;
|
|
109
|
-
useTesting: boolean;
|
|
110
|
-
};
|
|
111
|
-
isSplitPayment?: boolean;
|
|
112
|
-
totalAuthorizedAmount?: number;
|
|
113
|
-
};
|
|
114
|
-
export {};
|
|
@@ -1,30 +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
|
-
totalDisplayedPrice?: number;
|
|
20
|
-
}[];
|
|
21
|
-
};
|
|
22
|
-
export type IBookingQuoteResponse = {
|
|
23
|
-
rows: {
|
|
24
|
-
rowId: string;
|
|
25
|
-
totalRate: number;
|
|
26
|
-
totalDeposit: number;
|
|
27
|
-
totalFees: number;
|
|
28
|
-
quoteId: number;
|
|
29
|
-
}[];
|
|
30
|
-
} | null;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { EBookingPaymentMethod, IPaymentCheckoutDetails } from './IBookingPayment.type';
|
|
2
|
-
import { ReservedPackage } from '../Package/Package.types';
|
|
3
|
-
export declare class ItineraryResponse {
|
|
4
|
-
roomstayId: string;
|
|
5
|
-
itineraryNumber?: string;
|
|
6
|
-
total?: IAmount;
|
|
7
|
-
hotelFrontendId?: string;
|
|
8
|
-
reservations: Reservation[];
|
|
9
|
-
payment?: IPaymentCheckoutDetails;
|
|
10
|
-
feesSummary?: IItemisedBookingFeeResponse[];
|
|
11
|
-
itemisedFees?: IItemisedBookingFeeResponse[];
|
|
12
|
-
warnings?: string[];
|
|
13
|
-
}
|
|
14
|
-
export declare class Reservation {
|
|
15
|
-
reservationNumber: string;
|
|
16
|
-
roomType: string;
|
|
17
|
-
roomCode: string;
|
|
18
|
-
rate: string;
|
|
19
|
-
rateCode?: string;
|
|
20
|
-
images: string[];
|
|
21
|
-
guaranteePolicy?: string;
|
|
22
|
-
cancellationPolicy?: string;
|
|
23
|
-
checkInDate: string;
|
|
24
|
-
checkOutDate: string;
|
|
25
|
-
nights: {
|
|
26
|
-
[date: string]: IPrice;
|
|
27
|
-
};
|
|
28
|
-
guestCounts: {
|
|
29
|
-
adults: number;
|
|
30
|
-
children: number;
|
|
31
|
-
};
|
|
32
|
-
guest: GuestProfile;
|
|
33
|
-
paymentCard: {
|
|
34
|
-
type: string | undefined;
|
|
35
|
-
last4: string;
|
|
36
|
-
expiry: string;
|
|
37
|
-
name: string;
|
|
38
|
-
};
|
|
39
|
-
paymentMethod: EBookingPaymentMethod;
|
|
40
|
-
total: IAmount;
|
|
41
|
-
status: string;
|
|
42
|
-
isCancelable: boolean;
|
|
43
|
-
addons: ReservedPackage[] | undefined;
|
|
44
|
-
comments?: string[];
|
|
45
|
-
specialRequests?: string[];
|
|
46
|
-
promoCode?: string;
|
|
47
|
-
guaranteePolicyLongDescription?: string;
|
|
48
|
-
cancellationPolicyLongDescription?: string;
|
|
49
|
-
itemisedFees?: IItemisedBookingFeeResponse[];
|
|
50
|
-
}
|
|
51
|
-
export declare class GuestProfile {
|
|
52
|
-
title?: string;
|
|
53
|
-
firstName?: string;
|
|
54
|
-
middleName?: string;
|
|
55
|
-
lastName?: string;
|
|
56
|
-
nameSuffix?: string;
|
|
57
|
-
phone?: string;
|
|
58
|
-
email?: string;
|
|
59
|
-
address: IAddress;
|
|
60
|
-
marketingOptIn?: boolean;
|
|
61
|
-
country: string;
|
|
62
|
-
}
|
|
63
|
-
export type IGuestCounts = {
|
|
64
|
-
adults: number;
|
|
65
|
-
children: number;
|
|
66
|
-
};
|
|
67
|
-
export type IAddress = {
|
|
68
|
-
line1?: string;
|
|
69
|
-
line2?: string;
|
|
70
|
-
line3?: string;
|
|
71
|
-
city?: string;
|
|
72
|
-
postalCode?: string;
|
|
73
|
-
state?: string;
|
|
74
|
-
country?: string;
|
|
75
|
-
};
|
|
76
|
-
export type IAmount = {
|
|
77
|
-
beforeTax: number;
|
|
78
|
-
afterTax: number;
|
|
79
|
-
beforeFees?: number;
|
|
80
|
-
};
|
|
81
|
-
export type ICheckoutWorkflowType = {
|
|
82
|
-
sdkWidget: {
|
|
83
|
-
type: string;
|
|
84
|
-
id: string;
|
|
85
|
-
scriptUrl: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
export type IItemisedBookingFeeResponse = {
|
|
89
|
-
name: string;
|
|
90
|
-
description?: string;
|
|
91
|
-
amount: number;
|
|
92
|
-
};
|
|
93
|
-
export type IPrice = {
|
|
94
|
-
cost: number;
|
|
95
|
-
discount: number;
|
|
96
|
-
tax: number;
|
|
97
|
-
fee: number;
|
|
98
|
-
total: number;
|
|
99
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IBookingQuoteRequest, IBookingQuoteResponse } from './IBookingQuote.type';
|
|
2
|
-
export type IPencilReservationRequest = IBookingQuoteRequest & {
|
|
3
|
-
pencilId?: string;
|
|
4
|
-
rows: ({
|
|
5
|
-
pencilId?: string;
|
|
6
|
-
auxInputs?: {
|
|
7
|
-
[auxInputId: string]: string;
|
|
8
|
-
};
|
|
9
|
-
} & IBookingQuoteRequest['rows'][number])[];
|
|
10
|
-
};
|
|
11
|
-
export type IPencilReservationResponse = {
|
|
12
|
-
timeout?: Date;
|
|
13
|
-
pencilId?: string;
|
|
14
|
-
rows: {
|
|
15
|
-
rowId: string;
|
|
16
|
-
pencilId: string;
|
|
17
|
-
}[];
|
|
18
|
-
quote?: IBookingQuoteResponse;
|
|
19
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { IRoomstayMemberJWTData } from '../Member/IRoomstayMemberJWTData.type';
|
|
2
|
-
import { IBookingExtraFields } from './IBookingExtraFields.type';
|
|
3
|
-
import { IBookingPayment } from './IBookingPayment.type';
|
|
4
|
-
import { ICommonQueryParameters } from './ICommonQueryParameters.type';
|
|
5
|
-
import { ItineraryResponse } from './Itinerary.types';
|
|
6
|
-
export type IPlaceBookingRequest = {
|
|
7
|
-
rooms: IPlaceBookingRoomsDTO[];
|
|
8
|
-
services: IPlaceBookingServicesDTO[];
|
|
9
|
-
profiles?: IPlaceBookingProfilesDTO[];
|
|
10
|
-
specialRequest?: string;
|
|
11
|
-
comments?: string;
|
|
12
|
-
iataCode?: string;
|
|
13
|
-
sessionId?: string;
|
|
14
|
-
pencilId?: string;
|
|
15
|
-
tracking: {
|
|
16
|
-
sourceIp: string;
|
|
17
|
-
userAgent: string;
|
|
18
|
-
sourceUrl: string;
|
|
19
|
-
} & IPlaceBookingGCLIDAndUTM;
|
|
20
|
-
payment: IBookingPayment;
|
|
21
|
-
frontendMember?: IRoomstayMemberJWTData;
|
|
22
|
-
giftCard?: {
|
|
23
|
-
token: string;
|
|
24
|
-
code: string;
|
|
25
|
-
};
|
|
26
|
-
extraFields?: IBookingExtraFields;
|
|
27
|
-
} & ICommonQueryParameters;
|
|
28
|
-
export type IRepeatPaymentRequest = IPlaceBookingRequest & {
|
|
29
|
-
roomstayId: string;
|
|
30
|
-
};
|
|
31
|
-
export type IPlaceBookingResponse = ItineraryResponse;
|
|
32
|
-
export type IPlaceBookingRoomsDTO = {
|
|
33
|
-
roomType: string;
|
|
34
|
-
ratePlan: string;
|
|
35
|
-
promoCode?: string;
|
|
36
|
-
adults: number;
|
|
37
|
-
children: number;
|
|
38
|
-
infants?: number;
|
|
39
|
-
checkInDate: Date;
|
|
40
|
-
checkOutDate: Date;
|
|
41
|
-
quoteId?: number;
|
|
42
|
-
rowId?: string;
|
|
43
|
-
memberNumber?: string;
|
|
44
|
-
pencilId?: string;
|
|
45
|
-
};
|
|
46
|
-
export type IPlaceBookingServicesDTO = {
|
|
47
|
-
code: string;
|
|
48
|
-
ratePlanCode: string;
|
|
49
|
-
startDate: Date;
|
|
50
|
-
startTime?: string;
|
|
51
|
-
quantity?: number;
|
|
52
|
-
adults?: number;
|
|
53
|
-
children?: number;
|
|
54
|
-
pricingType?: string;
|
|
55
|
-
};
|
|
56
|
-
export type IPlaceBookingProfilesDTO = {
|
|
57
|
-
title?: string;
|
|
58
|
-
firstName: string;
|
|
59
|
-
middleName?: string;
|
|
60
|
-
lastName: string;
|
|
61
|
-
nameSuffix?: string;
|
|
62
|
-
phone: string;
|
|
63
|
-
email: string;
|
|
64
|
-
address: {
|
|
65
|
-
line1: string;
|
|
66
|
-
line2?: string;
|
|
67
|
-
line3?: string;
|
|
68
|
-
city?: string;
|
|
69
|
-
postalCode?: string;
|
|
70
|
-
state?: string;
|
|
71
|
-
country?: string;
|
|
72
|
-
countryId?: number;
|
|
73
|
-
countryCode?: string;
|
|
74
|
-
};
|
|
75
|
-
marketingOptIn: boolean;
|
|
76
|
-
auxInputs: {
|
|
77
|
-
[auxInputId: string]: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export type IPlaceBookingGCLIDAndUTM = {
|
|
81
|
-
utm: {
|
|
82
|
-
utmSource: string | null;
|
|
83
|
-
utmMedium: string | null;
|
|
84
|
-
utmCampaign: string | null;
|
|
85
|
-
utmTerm: string | null;
|
|
86
|
-
utmContent: string | null;
|
|
87
|
-
};
|
|
88
|
-
gclid: string | null;
|
|
89
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { ECompanyProvider, MediaType } from '../index.js';
|
|
2
|
-
export interface IAdminCompany {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
logo?: MediaType;
|
|
6
|
-
url: string;
|
|
7
|
-
provider: ECompanyProvider;
|
|
8
|
-
providerLogin: string;
|
|
9
|
-
providerPassword: string;
|
|
10
|
-
isGiftCardsEnabled: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `isRoomstayEventsEnabled` or `isHotelEventsEnabled` instead.
|
|
13
|
-
*/
|
|
14
|
-
isEventsEnabled: boolean;
|
|
15
|
-
isRoomstayEventsEnabled: boolean;
|
|
16
|
-
isHotelEventsEnabled: boolean;
|
|
17
|
-
isAnalyticsEnabled: boolean;
|
|
18
|
-
preventMemberPortalWelcomeEmails: boolean;
|
|
19
|
-
hotels: {
|
|
20
|
-
name: string;
|
|
21
|
-
label: string;
|
|
22
|
-
id: string;
|
|
23
|
-
frontendId: string;
|
|
24
|
-
rms?: {
|
|
25
|
-
clientId: number;
|
|
26
|
-
clientPassword: string;
|
|
27
|
-
useTrainingDb: boolean;
|
|
28
|
-
apiUrl: string;
|
|
29
|
-
pencilGuestId?: number;
|
|
30
|
-
};
|
|
31
|
-
}[];
|
|
32
|
-
enableLighthouseAvailability: boolean;
|
|
33
|
-
enableDerbysoftFeed: boolean;
|
|
34
|
-
}
|
|
35
|
-
export type IAdminGetCompaniesResponse = IAdminCompany[];
|
|
36
|
-
/** What the API expects */
|
|
37
|
-
export type IAdminFetchRMSHotelsRequest = {
|
|
38
|
-
/** Passing this field will apply changes */
|
|
39
|
-
confirm?: boolean;
|
|
40
|
-
};
|
|
41
|
-
/** Response type of the Fetch RMS hotels endpoint. This endpoint will contact RMS and fetch Hotel's details directly from their database.
|
|
42
|
-
* 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 */
|
|
43
|
-
export type IAdminFetchRMSHotelsResponse = {
|
|
44
|
-
/** If the hotels have in fact been synced, this will be true */
|
|
45
|
-
hasConfirmed: boolean;
|
|
46
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare enum EAdminCompanyUserRole {
|
|
2
|
-
SuperAdmin = "SuperAdmin",
|
|
3
|
-
Admin = "Admin",
|
|
4
|
-
Limited = "Limited"
|
|
5
|
-
}
|
|
6
|
-
export type IAdminCompanyUser = {
|
|
7
|
-
id: number;
|
|
8
|
-
email: string;
|
|
9
|
-
title: string;
|
|
10
|
-
firstName: string;
|
|
11
|
-
lastName: string;
|
|
12
|
-
newPassword?: string;
|
|
13
|
-
deletedDate?: Date;
|
|
14
|
-
role?: EAdminCompanyUserRole;
|
|
15
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ERoomstayEventSource } from "./ERoomstayEventSource.enum";
|
|
2
|
-
type IRoomstayEventAvailabilityPrice = {
|
|
3
|
-
currency: string;
|
|
4
|
-
majorValue: string;
|
|
5
|
-
value: number;
|
|
6
|
-
};
|
|
7
|
-
export type IRoomstayEventAvailability = {
|
|
8
|
-
isSoldOut?: boolean;
|
|
9
|
-
hasAvailableTickets?: boolean;
|
|
10
|
-
isFree: boolean;
|
|
11
|
-
minPrice?: IRoomstayEventAvailabilityPrice;
|
|
12
|
-
maxPrice?: IRoomstayEventAvailabilityPrice;
|
|
13
|
-
};
|
|
14
|
-
export type IRoomstayEvent = {
|
|
15
|
-
eventId: string;
|
|
16
|
-
source: ERoomstayEventSource | string;
|
|
17
|
-
name: string;
|
|
18
|
-
summary: string;
|
|
19
|
-
description: string;
|
|
20
|
-
image: {
|
|
21
|
-
background?: string;
|
|
22
|
-
url: string;
|
|
23
|
-
isRoomstay?: boolean;
|
|
24
|
-
id?: string;
|
|
25
|
-
};
|
|
26
|
-
checkoutUrl?: string;
|
|
27
|
-
url: string;
|
|
28
|
-
endDate: string;
|
|
29
|
-
startDate: string;
|
|
30
|
-
/**
|
|
31
|
-
* Used to override the startDate (if event is repeating for example, say every thursday at 6pm)
|
|
32
|
-
*/
|
|
33
|
-
eventTimeDescription?: string;
|
|
34
|
-
unixStartTime: number;
|
|
35
|
-
timezone: string;
|
|
36
|
-
searchCity: string[];
|
|
37
|
-
latitude: number;
|
|
38
|
-
longitude: number;
|
|
39
|
-
isPermanent?: boolean;
|
|
40
|
-
address: {
|
|
41
|
-
line1: string;
|
|
42
|
-
line2: string;
|
|
43
|
-
city: string;
|
|
44
|
-
country: string;
|
|
45
|
-
region: string;
|
|
46
|
-
};
|
|
47
|
-
availability?: IRoomstayEventAvailability;
|
|
48
|
-
tags: any;
|
|
49
|
-
};
|
|
50
|
-
export {};
|