@roomstay/core 0.1.23 → 0.1.24
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:(n,
|
|
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,i,c,d,l,u,y,s;function p(e){return e.toUpperCase()}e.r(n),e.d(n,{EBookingPaymentMethod:()=>o,ECompanyProvider:()=>i,EDistanceUnitType:()=>c,EGuarantyPolicyPrepaymentType:()=>s,EHotelCardProcessor:()=>a,EHotelPriceModel:()=>d,EHotelWeekdayStartsOn:()=>l,EPlanpayBookingStatus:()=>r,ERMSDiscountType:()=>u,ERoomstayImageSize:()=>y,IBookingStatus:()=>t,calculateTotalForMemberBooking:()=>P,resizeRoomstayImageUrl:()=>g,uppercaseString:()=>p}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(t||(t={})),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay",e.Adyen="Adyen"}(o||(o={})),function(e){e.Passthrough="Passthrough",e.Adyen="Adyen",e.Till="Till",e.RMSPay="RMSPay"}(a||(a={})),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.Synxis="Synxis",e.Availpro="Availpro",e.RMS="RMS"}(i||(i={})),function(e){e.Metric="metric",e.Imperial="imperial"}(c||(c={})),function(e){e.PerPerson="PerPerson",e.PerDay="PerDay",e.PerOccupancy="PerOccupancy"}(d||(d={})),function(e){e.Monday="monday",e.Sunday="sunday"}(l||(l={})),function(e){e.Percentage="Percentage",e.Amount="Amount",e.Bogo="BOGO"}(u||(u={})),function(e){e[e.Icon=128]="Icon",e[e.Tiny=256]="Tiny",e[e.Small=512]="Small",e[e.Medium=768]="Medium",e[e.Large=1024]="Large",e[e.ExtraLarge=1600]="ExtraLarge"}(y||(y={})),function(e){e.FixedAmount="fixed",e.Percentage="percentage",e.Nights="nights"}(s||(s={}));const P=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},g=(e,n)=>e.includes("cdn.app.roomstay.io")?e+"?w="+n:e;module.exports=n})();
|
|
@@ -10,7 +10,8 @@ export declare enum EBookingPaymentMethod {
|
|
|
10
10
|
export declare enum EHotelCardProcessor {
|
|
11
11
|
Passthrough = "Passthrough",
|
|
12
12
|
Adyen = "Adyen",
|
|
13
|
-
Till = "Till"
|
|
13
|
+
Till = "Till",
|
|
14
|
+
RMSPay = "RMSPay"
|
|
14
15
|
}
|
|
15
16
|
export declare enum EPlanpayBookingStatus {
|
|
16
17
|
Unknown = "unknown",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type IRMSRequirement = {
|
|
2
|
+
chargeDailyIncludeToDate: boolean;
|
|
3
|
+
chargeRequiredDaily: boolean;
|
|
4
|
+
code: string;
|
|
5
|
+
groupingId: number;
|
|
6
|
+
note: string;
|
|
7
|
+
sundryId: number;
|
|
8
|
+
unitPrice: number;
|
|
9
|
+
useSundryAmount: boolean;
|
|
10
|
+
feeType: string;
|
|
11
|
+
adultAmount: number;
|
|
12
|
+
childAmount: number;
|
|
13
|
+
infantAmount: number;
|
|
14
|
+
amount: number;
|
|
15
|
+
quantity: number;
|
|
16
|
+
requiredDaily: boolean;
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './Room/IRoomGroup.type';
|
|
|
30
30
|
*/
|
|
31
31
|
export * from './RMS/IRMSPropertyDiscount.type';
|
|
32
32
|
export * from './RMS/ERMSDiscountType.enum';
|
|
33
|
+
export * from './RMS/IRMSRequirement.type';
|
|
33
34
|
/**
|
|
34
35
|
* Image
|
|
35
36
|
*/
|
|
@@ -45,6 +46,10 @@ export * from './Member/IRoomstayMemberBookingProfile.type';
|
|
|
45
46
|
export * from './Member/IRoomstayMemberBookingAddress.type';
|
|
46
47
|
export * from './Member/IRoomstayMemberCards.type';
|
|
47
48
|
export * from './Member/ISession.type';
|
|
49
|
+
/**
|
|
50
|
+
* Policies
|
|
51
|
+
*/
|
|
52
|
+
export * from './Policies/EGuaranteePolicy.enum';
|
|
48
53
|
/**
|
|
49
54
|
* Roomstay Events
|
|
50
55
|
*/
|
package/dist/web.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define("@roomstay/core",[],(()=>(()=>{"use strict";var e={d:(n,
|
|
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,a,r,i,c,d,l,u,y,s;function p(e){return e.toUpperCase()}e.r(n),e.d(n,{EBookingPaymentMethod:()=>o,ECompanyProvider:()=>i,EDistanceUnitType:()=>c,EGuarantyPolicyPrepaymentType:()=>s,EHotelCardProcessor:()=>a,EHotelPriceModel:()=>d,EHotelWeekdayStartsOn:()=>l,EPlanpayBookingStatus:()=>r,ERMSDiscountType:()=>u,ERoomstayImageSize:()=>y,IBookingStatus:()=>t,calculateTotalForMemberBooking:()=>P,resizeRoomstayImageUrl:()=>g,uppercaseString:()=>p}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(t||(t={})),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay",e.Adyen="Adyen"}(o||(o={})),function(e){e.Passthrough="Passthrough",e.Adyen="Adyen",e.Till="Till",e.RMSPay="RMSPay"}(a||(a={})),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.Synxis="Synxis",e.Availpro="Availpro",e.RMS="RMS"}(i||(i={})),function(e){e.Metric="metric",e.Imperial="imperial"}(c||(c={})),function(e){e.PerPerson="PerPerson",e.PerDay="PerDay",e.PerOccupancy="PerOccupancy"}(d||(d={})),function(e){e.Monday="monday",e.Sunday="sunday"}(l||(l={})),function(e){e.Percentage="Percentage",e.Amount="Amount",e.Bogo="BOGO"}(u||(u={})),function(e){e[e.Icon=128]="Icon",e[e.Tiny=256]="Tiny",e[e.Small=512]="Small",e[e.Medium=768]="Medium",e[e.Large=1024]="Large",e[e.ExtraLarge=1600]="ExtraLarge"}(y||(y={})),function(e){e.FixedAmount="fixed",e.Percentage="percentage",e.Nights="nights"}(s||(s={}));const P=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},g=(e,n)=>e.includes("cdn.app.roomstay.io")?e+"?w="+n:e;return n})()));
|