@roomstay/core 0.1.85-4 → 0.1.85-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.
@@ -5,6 +5,7 @@ export interface IAnalyticsDailyRow {
5
5
  revenue: number;
6
6
  cost: number;
7
7
  impressions: number;
8
+ currency: string;
8
9
  }
9
10
  export interface IAnalyticsWithComparison<T extends IAnalyticsDailyRow = IAnalyticsDailyRow> {
10
11
  current: T[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Whether an entity is in a usable ("valid") state, and — when it isn't — the human-readable reasons
3
+ * why. Computed on the backend and returned alongside the entity so the admin can flag it (and explain
4
+ * it) without re-deriving the logic client-side.
5
+ *
6
+ * `reasons` is empty when `valid` is true.
7
+ */
8
+ export interface IEntityValidity {
9
+ valid: boolean;
10
+ reasons: string[];
11
+ }
@@ -5,6 +5,7 @@ export type IRMSPropertyDiscount = {
5
5
  hotelId: string;
6
6
  rmsDiscountId: number;
7
7
  rules: IStoredRule[];
8
+ allowedRateCodes: string[] | null;
8
9
  description: string;
9
10
  discountType: ERMSDiscountType;
10
11
  amount?: {
@@ -117,6 +117,7 @@ export * from './Events/IRoomstayEvent.type';
117
117
  */
118
118
  export * from './General/Format.types';
119
119
  export * from './General/HttpMethod.enum';
120
+ export * from './General/IEntityValidity.type';
120
121
  export * from './General/IMessage.type';
121
122
  export * from './General/Pagination.types';
122
123
  export * from './General/Warning.type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.85-4",
3
+ "version": "0.1.85-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": [