@roomstay/core 0.1.84-5 → 0.1.84-6

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.
@@ -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
+ };
@@ -4,6 +4,11 @@ export declare enum EAdminCompanyUserRole {
4
4
  Admin = "Admin",
5
5
  Limited = "Limited"
6
6
  }
7
+ export type IAdminCompanyUserHotel = {
8
+ companyUserId: number;
9
+ companyId: number;
10
+ hotelId: string;
11
+ };
7
12
  export type IAdminCompanyUser = {
8
13
  id: number;
9
14
  email: string;
@@ -14,4 +19,7 @@ export type IAdminCompanyUser = {
14
19
  newPassword?: string;
15
20
  deletedDate?: Date;
16
21
  role?: EAdminCompanyUserRole;
22
+ companyUserHotels?: IAdminCompanyUserHotel[];
23
+ hotelIds?: string[];
24
+ viewAllHotels?: boolean;
17
25
  };
@@ -0,0 +1,6 @@
1
+ export declare enum ERuleType {
2
+ Schedule = "Schedule",
3
+ DeviceTarget = "DeviceTarget",
4
+ GeoLock = "GeoLock",
5
+ CheapestOf = "CheapestOf"
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum ERuleType {
2
+ Schedule = "Schedule",
3
+ DeviceTarget = "DeviceTarget",
4
+ GeoLock = "GeoLock",
5
+ CheapestOf = "CheapestOf"
6
+ }
@@ -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
+ };
@@ -0,0 +1,8 @@
1
+ export declare enum ERMSAuthSyncHistoryStatus {
2
+ Success = "success",
3
+ Failure = "failure",
4
+ New = "new",
5
+ Queued = "queued",
6
+ InProgress = "in_progress",
7
+ RequireResume = "require_resume"
8
+ }
@@ -0,0 +1,8 @@
1
+ import { ERMSAuthSyncHistoryStatus } from './ERMSAuthSyncHistoryStatus.type';
2
+ export type IRMSSyncResponse = {
3
+ id: number;
4
+ status: ERMSAuthSyncHistoryStatus;
5
+ additionalData: any;
6
+ syncData: string | null;
7
+ syncType: string;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.84-5",
3
+ "version": "0.1.84-6",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [