@roomstay/core 0.1.84-3 → 0.1.84-5

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,25 @@
1
+ export interface IAnalyticsDailyRow {
2
+ date: string;
3
+ clicks: number;
4
+ bookings: number;
5
+ revenue: number;
6
+ cost: number;
7
+ impressions: number;
8
+ }
9
+ export interface IAnalyticsWithComparison<T extends IAnalyticsDailyRow = IAnalyticsDailyRow> {
10
+ current: T[];
11
+ comparison: T[];
12
+ }
13
+ export interface IAnalyticsAggregated {
14
+ impressions: number;
15
+ clicks: number;
16
+ bookings: number;
17
+ revenue: number;
18
+ cost: number;
19
+ ctr: number;
20
+ conversionRate: number;
21
+ cpc: number;
22
+ aov: number;
23
+ roas: number;
24
+ costOfSale: number;
25
+ }
@@ -16,6 +16,8 @@ export interface IAdminCompany {
16
16
  isHotelEventsEnabled: boolean;
17
17
  isAnalyticsEnabled: boolean;
18
18
  isMetasearchEnabled: boolean;
19
+ isGoogleAdsEnabled: boolean;
20
+ isMetaAdsEnabled: boolean;
19
21
  preventMemberPortalWelcomeEmails: boolean;
20
22
  hotels: {
21
23
  name: string;
@@ -1,3 +1,4 @@
1
+ import type { MediaType } from '../index.js';
1
2
  export declare enum EAdminCompanyUserRole {
2
3
  SuperAdmin = "SuperAdmin",
3
4
  Admin = "Admin",
@@ -9,6 +10,7 @@ export type IAdminCompanyUser = {
9
10
  title: string;
10
11
  firstName: string;
11
12
  lastName: string;
13
+ profilePicture: MediaType;
12
14
  newPassword?: string;
13
15
  deletedDate?: Date;
14
16
  role?: EAdminCompanyUserRole;
@@ -0,0 +1,4 @@
1
+ import { IAnalyticsDailyRow } from '../Analytics/IAnalyticsDailyRow.type';
2
+ export interface IGoogleAdsDailyRow extends IAnalyticsDailyRow {
3
+ campaign: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { IAnalyticsDailyRow } from '../Analytics/IAnalyticsDailyRow.type';
2
+ export interface IMetaAdsDailyRow extends IAnalyticsDailyRow {
3
+ campaign: string;
4
+ }
@@ -1,8 +1,8 @@
1
- export interface IMetasearchDailyRow {
2
- date: string;
3
- clicks: number;
4
- bookings: number;
5
- revenue: number;
6
- cost: number;
7
- impressions: number;
1
+ import { IAnalyticsDailyRow } from '../Analytics/IAnalyticsDailyRow.type';
2
+ export interface IMetasearchDailyRow extends IAnalyticsDailyRow {
3
+ hotelId: string;
4
+ channel: string;
5
+ linkType: string;
6
+ deviceType: string;
7
+ market: string;
8
8
  }
@@ -22,6 +22,10 @@ export * from './Booking/PlaceBooking.types';
22
22
  export * from './Company/ECompanyProvider.enum';
23
23
  export * from './Company/IAdminCompany.type';
24
24
  export * from './Company/IAdminCompanyUser.type';
25
+ /**
26
+ * Media
27
+ */
28
+ export * from './Media/IMedia.type';
25
29
  /**
26
30
  * Hotel
27
31
  */
@@ -127,6 +131,7 @@ export * from './Api/RoomNightRate.type';
127
131
  * Analytics
128
132
  */
129
133
  export * from './Analytics/IBigQueryResults.type';
134
+ export * from './Analytics/IAnalyticsDailyRow.type';
130
135
  /**
131
136
  * Analytics Events
132
137
  */
@@ -164,3 +169,11 @@ export * from './DisplayPolicy/EDisplayPolicyRuleType.enum';
164
169
  * Metasearch
165
170
  */
166
171
  export * from './Metasearch/IMetasearchDailyRow.type';
172
+ /**
173
+ * Google Ads
174
+ */
175
+ export * from './GoogleAds/IGoogleAdsDailyRow.type';
176
+ /**
177
+ * Meta Ads
178
+ */
179
+ export * from './MetaAds/IMetaAdsDailyRow.type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.84-3",
3
+ "version": "0.1.84-5",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -1,14 +0,0 @@
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[];
@@ -1,24 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- export declare enum ERuleType {
2
- Schedule = "Schedule",
3
- DeviceTarget = "DeviceTarget",
4
- GeoLock = "GeoLock",
5
- CheapestOf = "CheapestOf"
6
- }
@@ -1,6 +0,0 @@
1
- export declare enum ERuleType {
2
- Schedule = "Schedule",
3
- DeviceTarget = "DeviceTarget",
4
- GeoLock = "GeoLock",
5
- CheapestOf = "CheapestOf"
6
- }
@@ -1,25 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
- };