@roomstay/core 0.1.7 → 0.1.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.
@@ -0,0 +1,11 @@
1
+ export type IHotelColorScheme = {
2
+ accent: string;
3
+ accent2: string;
4
+ accent3: string;
5
+ success: string;
6
+ navbar?: {
7
+ background?: string;
8
+ text?: string;
9
+ textActive?: string;
10
+ };
11
+ };
@@ -0,0 +1,11 @@
1
+ export type IHotelColorScheme = {
2
+ accent: string;
3
+ accent2: string;
4
+ accent3: string;
5
+ success?: string;
6
+ navbar?: {
7
+ background?: string;
8
+ text?: string;
9
+ textActive?: string;
10
+ };
11
+ };
@@ -1,4 +1,4 @@
1
- import { IRoomstayMemberBookingItem } from './IRoomstayMemberBookingItem.type';
1
+ import { IRoomstayMemberBookingItem, IHotelColorScheme } from '../index.js';
2
2
  /**
3
3
  * DynamoDB object reference for a Member Booking
4
4
  */
@@ -6,6 +6,22 @@ export interface IRoomstayMemberBooking {
6
6
  username: string;
7
7
  itineraryId: string;
8
8
  hotelId: string;
9
+ hotel: {
10
+ name: string;
11
+ address: {
12
+ line1: string;
13
+ line2: string;
14
+ line3: string;
15
+ city: string;
16
+ postalCode: string;
17
+ state: string;
18
+ country: string;
19
+ };
20
+ phone: string;
21
+ checkInTime: string;
22
+ checkOutTime: string;
23
+ colors: IHotelColorScheme;
24
+ };
9
25
  itinerary: {
10
26
  [id: string]: IRoomstayMemberBookingItem;
11
27
  };
@@ -19,4 +19,5 @@ export type IRoomstayMemberBookingItem = {
19
19
  };
20
20
  cancellationPolicy: string;
21
21
  guaranteePolicy: string;
22
+ promoCode?: string;
22
23
  };
@@ -4,6 +4,10 @@
4
4
  export * from './Booking/IPrice.type';
5
5
  export * from './Booking/IBookingStatus.type';
6
6
  export * from './Booking/IBookingPayment.type';
7
+ /**
8
+ * Hotel Details
9
+ */
10
+ export * from './Hotel/IHotelColorScheme.type';
7
11
  /**
8
12
  * Member Details
9
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -17,7 +17,8 @@
17
17
  "license": "MIT",
18
18
  "scripts": {
19
19
  "build": "tsc --emitDeclarationOnly; resolve-tspaths; webpack",
20
- "release": "np"
20
+ "release": "np",
21
+ "prepublishOnly": "npm run build"
21
22
  },
22
23
  "np": {
23
24
  "name": "Roomstay Core",