@roomstay/core 0.1.54-0 → 0.1.54-2
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EHotelCardProcessor } from '../Booking/IBookingPayment.type';
|
|
2
2
|
import { EGuaranteePolicyDepositMode } from '../Policies/EGuaranteePolicy.enum';
|
|
3
3
|
import { IItemisedBookingFeeResponse } from '../Booking/Itinerary.types';
|
|
4
|
+
import { Warning } from "../General/Warning.type";
|
|
4
5
|
export type IAvailability = {
|
|
5
6
|
roomTypes: {
|
|
6
7
|
[roomTypeCode: string]: IRoomType;
|
|
@@ -13,17 +14,19 @@ export type IAvailability = {
|
|
|
13
14
|
[roomTypeCode: string]: IRoomNight;
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
|
-
/** @deprecated */
|
|
17
17
|
guaranteePolicies: {
|
|
18
|
-
[policyCode: string]: string;
|
|
19
|
-
};
|
|
20
|
-
guaranteePolicyDetails?: {
|
|
21
18
|
[policyCode: string]: IAvailabilityGuaranteePolicyDetails;
|
|
22
19
|
};
|
|
23
20
|
cancelPolicies: {
|
|
24
21
|
[policyCode: string]: string;
|
|
25
22
|
};
|
|
26
|
-
warnings: string[];
|
|
23
|
+
warnings: Warning<string>[];
|
|
24
|
+
alternativeAvailability?: IAlternativeAvailability;
|
|
25
|
+
};
|
|
26
|
+
export type IAlternativeAvailability = {
|
|
27
|
+
checkInDate: string;
|
|
28
|
+
checkOutDate: string;
|
|
29
|
+
availability: IAvailability;
|
|
27
30
|
};
|
|
28
31
|
export type IAvailabilityGuaranteePolicyDetails = {
|
|
29
32
|
code: string;
|
|
@@ -31,7 +34,8 @@ export type IAvailabilityGuaranteePolicyDetails = {
|
|
|
31
34
|
longDescription: string;
|
|
32
35
|
depositMode: EGuaranteePolicyDepositMode;
|
|
33
36
|
depositPercentage?: number;
|
|
34
|
-
prepaymentCardProcessor: EHotelCardProcessor;
|
|
37
|
+
prepaymentCardProcessor: EHotelCardProcessor | null;
|
|
38
|
+
hide: boolean;
|
|
35
39
|
};
|
|
36
40
|
export type IRoomType = {
|
|
37
41
|
name: string;
|
|
@@ -39,20 +43,20 @@ export type IRoomType = {
|
|
|
39
43
|
longDescription: string;
|
|
40
44
|
imageUrls: string[];
|
|
41
45
|
occupancy: number;
|
|
42
|
-
roomGroupId?: string;
|
|
46
|
+
roomGroupId?: string | null;
|
|
43
47
|
auxiliaryValues?: {
|
|
44
|
-
[auxiliaryFilterId: string]: string;
|
|
48
|
+
[auxiliaryFilterId: string]: string[];
|
|
45
49
|
};
|
|
46
50
|
order: number;
|
|
47
51
|
};
|
|
48
52
|
export type IRatePlan = {
|
|
49
53
|
name: string;
|
|
50
54
|
description: string;
|
|
51
|
-
longDescription?: string;
|
|
55
|
+
longDescription?: string | null;
|
|
52
56
|
guaranteeCode: string;
|
|
53
57
|
cancelPolicyCode: string;
|
|
54
|
-
promoCode
|
|
55
|
-
promoCodeName?: string |
|
|
58
|
+
promoCode?: string | null;
|
|
59
|
+
promoCodeName?: string | null;
|
|
56
60
|
mealsIncluded: {
|
|
57
61
|
breakfast: boolean;
|
|
58
62
|
lunch: boolean;
|
|
@@ -80,11 +84,11 @@ export type IRateOverride = {
|
|
|
80
84
|
name: string;
|
|
81
85
|
shortDescription: string;
|
|
82
86
|
longDescription: string;
|
|
83
|
-
enabledPerDay: IRateLabelsByDay;
|
|
87
|
+
enabledPerDay: IRateLabelsByDay | null;
|
|
84
88
|
startDate: string;
|
|
85
|
-
endDate: string;
|
|
86
|
-
queryStartDate: string;
|
|
87
|
-
queryEndDate: string;
|
|
89
|
+
endDate: string | null;
|
|
90
|
+
queryStartDate: string | null;
|
|
91
|
+
queryEndDate: string | null;
|
|
88
92
|
};
|
|
89
93
|
export type IRateLabelsByDay = {
|
|
90
94
|
Monday: boolean;
|