@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 +1 -1
- package/dist/types/Hotel/EHotelPriceModel.enum.d.ts +5 -0
- package/dist/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +4 -0
- package/dist/types/Hotel/IHotelOverrides.type.d.ts +18 -0
- package/dist/types/Hotel/IHotelReplica.type.d.ts +50 -0
- package/dist/types/Hotel/IHotelService.type.d.ts +6 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/web.js +1 -1
- package/package.json +1 -1
package/dist/node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={d:(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,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
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
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})()));
|