@roomstay/core 0.1.11 → 0.1.12

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/node.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};let n,o,a;function r(e){return e.toUpperCase()}e.r(t),e.d(t,{EBookingPaymentMethod:()=>o,EPlanpayBookingStatus:()=>a,IBookingStatus:()=>n,calculateTotalForMemberBooking:()=>d,uppercaseString:()=>r}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(n||(n={})),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay"}(o||(o={})),function(e){e.Unknown="unknown",e.Unpaid="unpaid",e.Accepted="accepted",e.Cancelled="cancelled",e.Refunded="refunded",e.Rejected="rejected"}(a||(a={}));const d=e=>{let t=0;const n=Object.values(e.itinerary);for(const e of n){const n=Object.keys(e.nights);for(const o of n)t+=e.nights[o].total}return t};module.exports=t})();
1
+ (()=>{"use strict";var e={d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};let t,o,a,r,c,d;function i(e){return e.toUpperCase()}e.r(n),e.d(n,{EBookingPaymentMethod:()=>o,EDistanceUnitType:()=>r,EHotelPriceModel:()=>c,EHotelWeekdayStartsOn:()=>d,EPlanpayBookingStatus:()=>a,IBookingStatus:()=>t,calculateTotalForMemberBooking:()=>l,uppercaseString:()=>i}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(t||(t={})),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay"}(o||(o={})),function(e){e.Unknown="unknown",e.Unpaid="unpaid",e.Accepted="accepted",e.Cancelled="cancelled",e.Refunded="refunded",e.Rejected="rejected"}(a||(a={})),function(e){e.Metric="metric",e.Imperial="imperial"}(r||(r={})),function(e){e.PerPerson="PerPerson",e.PerDay="PerDay",e.PerOccupancy="PerOccupancy"}(c||(c={})),function(e){e.Monday="monday",e.Sunday="sunday"}(d||(d={}));const l=e=>{let n=0;const t=Object.values(e.itinerary);for(const e of t){const t=Object.keys(e.nights);for(const o of t)n+=e.nights[o].total}return n};module.exports=n})();
@@ -0,0 +1,5 @@
1
+ export declare enum EHotelPriceModel {
2
+ PerPerson = "PerPerson",
3
+ PerDay = "PerDay",
4
+ PerOccupancy = "PerOccupancy"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum EHotelWeekdayStartsOn {
2
+ Monday = "monday",
3
+ Sunday = "sunday"
4
+ }
@@ -0,0 +1,18 @@
1
+ export declare enum EDistanceUnitType {
2
+ Metric = "metric",
3
+ Imperial = "imperial"
4
+ }
5
+ export type ITransportDistances = {
6
+ plane?: string;
7
+ train?: string;
8
+ bus?: string;
9
+ taxi?: string;
10
+ };
11
+ export type IHotelOverrides = {
12
+ hideByLine?: boolean;
13
+ overrideDistanceUnitType?: boolean;
14
+ distanceUnitType?: EDistanceUnitType;
15
+ transportDistances?: ITransportDistances;
16
+ phoneNumberInSummary?: boolean;
17
+ enabledEventIds?: string[];
18
+ };
@@ -1,3 +1,53 @@
1
+ import { EDistanceUnitType, EHotelPriceModel, EHotelWeekdayStartsOn, IHotelColorScheme, IHotelOverrides, IHotelService } from '../index.js';
1
2
  export type IHotelReplica = {
2
3
  hotelId: string;
4
+ addressLine1: string;
5
+ addressLine2: string;
6
+ addressLine3: string;
7
+ businessServices: IHotelService[];
8
+ cancellationEmailTemplate: string;
9
+ ccBookingEmailsTo: string;
10
+ chainId: number;
11
+ chainName: string;
12
+ checkInTime: string;
13
+ checkOutTime: string;
14
+ checkOutUrl: string;
15
+ cityName: string;
16
+ confirmationEmailTemplate: string;
17
+ country: string;
18
+ crossSellDescription: string;
19
+ crossSellHotelId: string;
20
+ currencyCode: string;
21
+ deletedDate: string;
22
+ description: string;
23
+ distanceUnitType: EDistanceUnitType;
24
+ email: string;
25
+ frontendId: string;
26
+ heroImage: any;
27
+ hotelColorScheme: IHotelColorScheme;
28
+ hotelOverrides?: IHotelOverrides;
29
+ hotelService: IHotelService[];
30
+ hotelUrl: string;
31
+ images: any[];
32
+ label: string;
33
+ languageCode: string;
34
+ latitude: string;
35
+ longitude: string;
36
+ locationDescription: string;
37
+ name: string;
38
+ paymentCardTypes: string[];
39
+ phone: string;
40
+ policies: string;
41
+ postCode: string;
42
+ priceModel: EHotelPriceModel;
43
+ providerData: any;
44
+ providerId: string;
45
+ reservationContactEmail: string;
46
+ roomTypeCodes: string[];
47
+ roomstaySendsEmails: boolean;
48
+ state: string;
49
+ supportedLanguages: string[];
50
+ urlName: string;
51
+ utcOffset: string;
52
+ weekdayStartsOn: EHotelWeekdayStartsOn;
3
53
  };
@@ -0,0 +1,6 @@
1
+ export type IHotelService = {
2
+ name: string;
3
+ detail: string;
4
+ onsite: boolean;
5
+ included: boolean;
6
+ };
@@ -9,6 +9,10 @@ export * from './Booking/IBookingPayment.type';
9
9
  */
10
10
  export * from './Hotel/IHotelColorScheme.type';
11
11
  export * from './Hotel/IHotelReplica.type';
12
+ export * from './Hotel/IHotelOverrides.type';
13
+ export * from './Hotel/IHotelService.type';
14
+ export * from './Hotel/EHotelPriceModel.enum';
15
+ export * from './Hotel/EHotelWeekdayStartsOn.enum';
12
16
  /**
13
17
  * Member Details
14
18
  */
package/dist/web.js CHANGED
@@ -1 +1 @@
1
- define("@roomstay/core",[],(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};let n,o,r;function a(e){return e.toUpperCase()}e.r(t),e.d(t,{EBookingPaymentMethod:()=>o,EPlanpayBookingStatus:()=>r,IBookingStatus:()=>n,calculateTotalForMemberBooking:()=>d,uppercaseString:()=>a}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(n||(n={})),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay"}(o||(o={})),function(e){e.Unknown="unknown",e.Unpaid="unpaid",e.Accepted="accepted",e.Cancelled="cancelled",e.Refunded="refunded",e.Rejected="rejected"}(r||(r={}));const d=e=>{let t=0;const n=Object.values(e.itinerary);for(const e of n){const n=Object.keys(e.nights);for(const o of n)t+=e.nights[o].total}return t};return t})()));
1
+ define("@roomstay/core",[],(()=>(()=>{"use strict";var e={d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};let t,o,r,a,c,d;function i(e){return e.toUpperCase()}e.r(n),e.d(n,{EBookingPaymentMethod:()=>o,EDistanceUnitType:()=>a,EHotelPriceModel:()=>c,EHotelWeekdayStartsOn:()=>d,EPlanpayBookingStatus:()=>r,IBookingStatus:()=>t,calculateTotalForMemberBooking:()=>l,uppercaseString:()=>i}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(t||(t={})),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay"}(o||(o={})),function(e){e.Unknown="unknown",e.Unpaid="unpaid",e.Accepted="accepted",e.Cancelled="cancelled",e.Refunded="refunded",e.Rejected="rejected"}(r||(r={})),function(e){e.Metric="metric",e.Imperial="imperial"}(a||(a={})),function(e){e.PerPerson="PerPerson",e.PerDay="PerDay",e.PerOccupancy="PerOccupancy"}(c||(c={})),function(e){e.Monday="monday",e.Sunday="sunday"}(d||(d={}));const l=e=>{let n=0;const t=Object.values(e.itinerary);for(const e of t){const t=Object.keys(e.nights);for(const o of t)n+=e.nights[o].total}return n};return n})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [