@roomstay/core 0.2.0-8 → 0.2.0-9
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/types/Addon/Addon.enum.d.ts +14 -0
- package/dist/types/Addon/Addon.type.d.ts +24 -0
- package/dist/types/DisplayPolicy/ERuleType.d.ts +6 -0
- package/dist/types/DisplayPolicy/ERuleType.enum.d.ts +6 -0
- package/dist/types/DisplayPolicy/IDisplayPolicy.d.ts +25 -0
- package/dist/types/DisplayPolicy/IDisplayPolicy.type.d.ts +18 -14
- package/dist/types/RMS/ERMSAuthSyncHistoryStatus.type.d.ts +8 -0
- package/dist/types/RMS/IRMSSyncResponse.type.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum AddonPricingType {
|
|
2
|
+
PER_STAY = "Per stay",
|
|
3
|
+
PER_NIGHT = "Per night",
|
|
4
|
+
PER_PERSON = "Per person",
|
|
5
|
+
PER_PERSON_PER_NIGHT = "Per person per night",
|
|
6
|
+
PER_ALL_PERSONS = "Per all persons",
|
|
7
|
+
PER_ALL_PERSONS_PER_NIGHT = "Per all persons per night",
|
|
8
|
+
PER_QUANTITY_NAME_PER_NIGHT = "Per Quantity Name Per Night",
|
|
9
|
+
PER_ROOM_QUANTITY_PER_NIGHT = "Per Room Quantity Per Night",
|
|
10
|
+
PER_PERSON_OCCUPANCY_PER_NIGHT = "Per Person Occupancy Per Night",
|
|
11
|
+
PER_ADULT_OCCUPANCY_PER_NIGHT = "Per Adult Occupancy Per Night",
|
|
12
|
+
PER_CHILD_OCCUPANCY_PER_NIGHT = "Per Child Occupancy Per Night"
|
|
13
|
+
}
|
|
14
|
+
export declare const ADDON_PER_NIGHT_TYPES: AddonPricingType[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SimpleItemisedFee } from "types/Fees/IFee.type";
|
|
2
|
+
export type BasketAddonDTO = {
|
|
3
|
+
availability: any;
|
|
4
|
+
code: string;
|
|
5
|
+
inclusive: false;
|
|
6
|
+
pricingType: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
adultQuantity: number;
|
|
9
|
+
childQuantity?: number;
|
|
10
|
+
description: string;
|
|
11
|
+
name: string;
|
|
12
|
+
category: string;
|
|
13
|
+
image: string;
|
|
14
|
+
price: number;
|
|
15
|
+
adultPrice?: number;
|
|
16
|
+
childPrice?: number;
|
|
17
|
+
fee: number;
|
|
18
|
+
adultFee?: number;
|
|
19
|
+
childFee?: number;
|
|
20
|
+
fees?: SimpleItemisedFee[];
|
|
21
|
+
adultFees?: SimpleItemisedFee[];
|
|
22
|
+
childFees?: SimpleItemisedFee[];
|
|
23
|
+
nights?: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ERuleType } from './ERuleType';
|
|
2
|
+
export interface IDisplayPolicy {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
applicableRates: string[];
|
|
7
|
+
conditions: ICondition[];
|
|
8
|
+
}
|
|
9
|
+
export type IScheduleConfiguration = {
|
|
10
|
+
rruleSet: string;
|
|
11
|
+
durationMs: number;
|
|
12
|
+
};
|
|
13
|
+
export type ICondition = {
|
|
14
|
+
ruleType: ERuleType.Schedule;
|
|
15
|
+
configuration: IScheduleConfiguration;
|
|
16
|
+
} | {
|
|
17
|
+
ruleType: ERuleType.DeviceTarget;
|
|
18
|
+
configuration: unknown;
|
|
19
|
+
} | {
|
|
20
|
+
ruleType: ERuleType.GeoLock;
|
|
21
|
+
configuration: unknown;
|
|
22
|
+
} | {
|
|
23
|
+
ruleType: ERuleType.CheapestOf;
|
|
24
|
+
configuration: unknown;
|
|
25
|
+
};
|
|
@@ -7,7 +7,20 @@ export interface IDisplayPolicy {
|
|
|
7
7
|
conditions: IDisplayPolicyCondition[];
|
|
8
8
|
deletedDate?: string;
|
|
9
9
|
}
|
|
10
|
-
export type
|
|
10
|
+
export type IDisplayPolicyCondition = {
|
|
11
|
+
ruleType: EDisplayPolicyRuleType.Schedule;
|
|
12
|
+
configuration: IDisplayPolicyScheduleConfig;
|
|
13
|
+
} | {
|
|
14
|
+
ruleType: EDisplayPolicyRuleType.DeviceTarget;
|
|
15
|
+
configuration: IDisplayPolicyDeviceTargetConfig;
|
|
16
|
+
} | {
|
|
17
|
+
ruleType: EDisplayPolicyRuleType.GeoLock;
|
|
18
|
+
configuration: IDisplayPolicyGeoLockConfig;
|
|
19
|
+
} | {
|
|
20
|
+
ruleType: EDisplayPolicyRuleType.CheapestOf;
|
|
21
|
+
configuration: unknown;
|
|
22
|
+
};
|
|
23
|
+
export type IDisplayPolicyScheduleConfig = {
|
|
11
24
|
type: 'clock' | 'stay';
|
|
12
25
|
rules: {
|
|
13
26
|
type: 'include' | 'exclude';
|
|
@@ -20,19 +33,10 @@ export declare enum EDisplayPolicyDeviceTarget {
|
|
|
20
33
|
Desktop = "desktop",
|
|
21
34
|
Mobile = "mobile"
|
|
22
35
|
}
|
|
23
|
-
export type
|
|
36
|
+
export type IDisplayPolicyDeviceTargetConfig = {
|
|
24
37
|
allowedDevices: EDisplayPolicyDeviceTarget[];
|
|
25
38
|
};
|
|
26
|
-
export type
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} | {
|
|
30
|
-
ruleType: EDisplayPolicyRuleType.DeviceTarget;
|
|
31
|
-
configuration: IDisplayPolicyDeviceTargetCondition;
|
|
32
|
-
} | {
|
|
33
|
-
ruleType: EDisplayPolicyRuleType.GeoLock;
|
|
34
|
-
configuration: unknown;
|
|
35
|
-
} | {
|
|
36
|
-
ruleType: EDisplayPolicyRuleType.CheapestOf;
|
|
37
|
-
configuration: unknown;
|
|
39
|
+
export type IDisplayPolicyGeoLockConfig = {
|
|
40
|
+
applicableCountryCodes: string[];
|
|
41
|
+
mode: 'allow' | 'block';
|
|
38
42
|
};
|