@roomstay/core 0.1.40 → 0.1.41-0
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/index.d.ts +0 -0
- package/dist/node.js +1 -1
- package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +0 -0
- package/dist/types/Booking/IBookingPayment.type.d.ts +1 -10
- package/dist/types/Booking/IBookingQuote.type.d.ts +0 -0
- package/dist/types/Booking/IBookingStatus.type.d.ts +0 -0
- package/dist/types/Booking/IPrice.type.d.ts +0 -0
- package/dist/types/Company/ECompanyProvider.enum.d.ts +0 -0
- package/dist/types/Company/IAdminCompany.type.d.ts +3 -1
- package/dist/types/Company/IAdminCompanyUser.type.d.ts +0 -0
- package/dist/types/Events/IRoomstayEvent.type.d.ts +0 -0
- package/dist/types/General/HttpMethod.enum.d.ts +0 -0
- package/dist/types/General/IJsonString.type.d.ts +0 -0
- package/dist/types/Hotel/EHotelPriceModel.enum.d.ts +0 -0
- package/dist/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +0 -0
- package/dist/types/Hotel/IAuxiliaryFilter.type.d.ts +0 -0
- package/dist/types/Hotel/IHotelColorScheme.type.d.ts +0 -0
- package/dist/types/Hotel/IHotelOverrides.type.d.ts +0 -0
- package/dist/types/Hotel/IHotelReplica.type.d.ts +0 -0
- package/dist/types/Hotel/IHotelService.type.d.ts +0 -0
- package/dist/types/Image/IRoomstayImage.type.d.ts +0 -0
- package/dist/types/Media/IMedia.type.d.ts +10 -0
- package/dist/types/Member/IRoomstayCognitoMember.type.d.ts +0 -0
- package/dist/types/Member/IRoomstayMember.type.d.ts +0 -0
- package/dist/types/Member/IRoomstayMemberBooking.type.d.ts +0 -0
- package/dist/types/Member/IRoomstayMemberBookingAddress.type.d.ts +0 -0
- package/dist/types/Member/IRoomstayMemberBookingItem.type.d.ts +0 -0
- package/dist/types/Member/IRoomstayMemberBookingProfile.type.d.ts +0 -0
- package/dist/types/Member/IRoomstayMemberCards.type.d.ts +0 -0
- package/dist/types/Member/ISession.type.d.ts +0 -0
- package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +0 -0
- package/dist/types/RMS/ERMSDiscountType.enum.d.ts +0 -0
- package/dist/types/RMS/IRMSPropertyDiscount.type.d.ts +0 -0
- package/dist/types/RMS/IRMSRequirement.type.d.ts +0 -0
- package/dist/types/Room/IRoomGroup.type.d.ts +0 -0
- package/dist/types/index.d.ts +40 -36
- package/dist/utils/bookingTotal.d.ts +0 -0
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/nameof.d.ts +2 -0
- package/dist/utils/roomstayImageResize.d.ts +0 -0
- package/dist/utils/uppercaseString.d.ts +0 -0
- package/dist/web.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={n:n=>{var o=n&&n.__esModule?()=>n.default:()=>n;return e.d(o,{a:o}),o},d:(n,o)=>{for(var t in o)e.o(o,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:o[t]})},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 o,t,a
|
|
1
|
+
(()=>{"use strict";var e={n:n=>{var o=n&&n.__esModule?()=>n.default:()=>n;return e.d(o,{a:o}),o},d:(n,o)=>{for(var t in o)e.o(o,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:o[t]})},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 o,t,a;e.r(n),e.d(n,{EBookingPaymentMethod:()=>o,ECompanyProvider:()=>c,EDistanceUnitType:()=>g,EGuarantyPolicyPrepaymentType:()=>m,EHotelCardProcessor:()=>t,EHotelPriceModel:()=>d,EHotelStateFieldConfiguration:()=>l,EHotelWeekdayStartsOn:()=>u,EIntegration:()=>y,EPlanpayBookingStatus:()=>a,ERMSDiscountType:()=>p,ERoomstayImageSize:()=>P,HttpMethod:()=>f,IAuxiliaryFilterType:()=>s,IBookingStatus:()=>i,PCIBookingCardProcessorTypes:()=>r,calculateTotalForMemberBooking:()=>T,nameof:()=>O,resizeRoomstayImageUrl:()=>E,roundMoney:()=>h,subset:()=>C,uppercaseString:()=>S}),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay",e.Adyen="Adyen",e.PCIBookingCard="PCIBookingCard"}(o||(o={})),function(e){e.Passthrough="Passthrough",e.Adyen="Adyen",e.Till="Till",e.RMSPay="RMSPay",e.Windcave="Windcave"}(t||(t={})),function(e){e.Unknown="unknown",e.Unpaid="unpaid",e.Accepted="accepted",e.Cancelled="cancelled",e.Refunded="refunded",e.Rejected="rejected"}(a||(a={}));const r=[];let i,c,d,l,u,y,s,g,p,P,m,f;function S(e){return e.toUpperCase()}!function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(i||(i={})),function(e){e.Synxis="Synxis",e.Availpro="Availpro",e.RMS="RMS",e.Siteminder="Siteminder",e.Roomstay="Roomstay"}(c||(c={})),function(e){e.PerPerson="PerPerson",e.PerDay="PerDay",e.PerOccupancy="PerOccupancy"}(d||(d={})),function(e){e.NotIncluded="NotIncluded",e.Optional="Optional",e.Required="Required"}(l||(l={})),function(e){e.Monday="monday",e.Sunday="sunday"}(u||(u={})),function(e){e.Big4="Big4",e.RmsTop10="Top10",e.Top10="NewTop10",e.Gday="Gday",e.Salesforce="Salesforce"}(y||(y={})),function(e){e.AreaDwellingLength="AreaDwellingLength",e.AreaDwellingType="AreaDwellingType"}(s||(s={})),function(e){e.Metric="metric",e.Imperial="imperial"}(g||(g={})),function(e){e.Percentage="Percentage",e.Amount="Amount",e.Bogo="BOGO",e.NightlyRateOverride="NightlyRateOverride"}(p||(p={})),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"}(P||(P={})),function(e){e.FixedAmount="fixed",e.Percentage="percentage",e.Nights="nights"}(m||(m={})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.HEAD="HEAD"}(f||(f={}));const T=e=>{let n=0;const o=Object.values(e.itinerary);for(const e of o){const o=Object.keys(e.nights);for(const t of o)n+=e.nights[t].total}return n},E=(e,n)=>e.includes("cdn.app.roomstay.io")?e+"?w="+n:e,O=e=>e,C=(e,n)=>{const o={};return n.forEach((n=>{n in e&&(o[n]=e[n])})),o},A=require("decimal.js");var M=e.n(A);const h=e=>new(M())(e).toDecimalPlaces(2).toNumber();module.exports=n})();
|
|
File without changes
|
|
@@ -38,16 +38,7 @@ export type IBookingPaymentTokenizedCard = {
|
|
|
38
38
|
};
|
|
39
39
|
export type EHotelCardProcessorInitData = {
|
|
40
40
|
[EHotelCardProcessor.Passthrough]: undefined;
|
|
41
|
-
[EHotelCardProcessor.Adyen]:
|
|
42
|
-
roomstayId: string;
|
|
43
|
-
sessionId: string;
|
|
44
|
-
sessionData: string;
|
|
45
|
-
ww: any;
|
|
46
|
-
clientKey: string;
|
|
47
|
-
isLive: boolean;
|
|
48
|
-
currency: string;
|
|
49
|
-
amount: number;
|
|
50
|
-
};
|
|
41
|
+
[EHotelCardProcessor.Adyen]: undefined;
|
|
51
42
|
[EHotelCardProcessor.RMSPay]: undefined;
|
|
52
43
|
[EHotelCardProcessor.Till]: undefined;
|
|
53
44
|
[EHotelCardProcessor.Windcave]: {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { ECompanyProvider } from
|
|
1
|
+
import type { ECompanyProvider, MediaType } from "../index.js";
|
|
2
2
|
export interface IAdminCompany {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
5
|
+
logo?: MediaType;
|
|
6
|
+
url: string;
|
|
5
7
|
provider: ECompanyProvider;
|
|
6
8
|
providerLogin: string;
|
|
7
9
|
providerPassword: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,66 +1,70 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Booking Details
|
|
3
3
|
*/
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
4
|
+
export * from "./Booking/IBookingPayment.type";
|
|
5
|
+
export * from "./Booking/IBookingStatus.type";
|
|
6
|
+
export * from "./Booking/IPrice.type";
|
|
7
|
+
export * from "./Booking/IBookingCreateErrorResponse";
|
|
8
|
+
export * from "./Booking/IBookingQuote.type";
|
|
9
9
|
/**
|
|
10
10
|
* Company
|
|
11
11
|
*/
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
12
|
+
export * from "./Company/ECompanyProvider.enum";
|
|
13
|
+
export * from "./Company/IAdminCompany.type";
|
|
14
|
+
export * from "./Company/IAdminCompanyUser.type";
|
|
15
15
|
/**
|
|
16
16
|
* Hotel
|
|
17
17
|
*/
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
18
|
+
export * from "./Hotel/EHotelPriceModel.enum";
|
|
19
|
+
export * from "./Hotel/EHotelStateFieldConfiguration.enum";
|
|
20
|
+
export * from "./Hotel/EHotelWeekdayStartsOn.enum";
|
|
21
|
+
export * from "./Hotel/EIntegration.enum";
|
|
22
|
+
export * from "./Hotel/IAuxiliaryFilter.type";
|
|
23
|
+
export * from "./Hotel/IHotelColorScheme.type";
|
|
24
|
+
export * from "./Hotel/IHotelOverrides.type";
|
|
25
|
+
export * from "./Hotel/IHotelReplica.type";
|
|
26
|
+
export * from "./Hotel/IHotelService.type";
|
|
27
27
|
/**
|
|
28
28
|
* Room
|
|
29
29
|
*/
|
|
30
|
-
export * from
|
|
30
|
+
export * from "./Room/IRoomGroup.type";
|
|
31
31
|
/**
|
|
32
32
|
* RMS
|
|
33
33
|
*/
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
34
|
+
export * from "./RMS/ERMSDiscountType.enum";
|
|
35
|
+
export * from "./RMS/IRMSPropertyDiscount.type";
|
|
36
|
+
export * from "./RMS/IRMSRequirement.type";
|
|
37
37
|
/**
|
|
38
38
|
* Image
|
|
39
39
|
*/
|
|
40
|
-
export * from
|
|
40
|
+
export * from "./Image/IRoomstayImage.type";
|
|
41
41
|
/**
|
|
42
42
|
* Member Details
|
|
43
43
|
*/
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
44
|
+
export * from "./Member/IMember.type";
|
|
45
|
+
export * from "./Member/IMemberVerification.type";
|
|
46
|
+
export * from "./Member/IRoomstayCognitoMember.type";
|
|
47
|
+
export * from "./Member/IRoomstayMember.type";
|
|
48
|
+
export * from "./Member/IRoomstayMemberBooking.type";
|
|
49
|
+
export * from "./Member/IRoomstayMemberBookingAddress.type";
|
|
50
|
+
export * from "./Member/IRoomstayMemberBookingItem.type";
|
|
51
|
+
export * from "./Member/IRoomstayMemberBookingProfile.type";
|
|
52
|
+
export * from "./Member/IRoomstayMemberCards.type";
|
|
53
|
+
export * from "./Member/ISession.type";
|
|
54
54
|
/**
|
|
55
55
|
* Policies
|
|
56
56
|
*/
|
|
57
|
-
export * from
|
|
57
|
+
export * from "./Policies/EGuaranteePolicy.enum";
|
|
58
58
|
/**
|
|
59
59
|
* Roomstay Events
|
|
60
60
|
*/
|
|
61
|
-
export * from
|
|
61
|
+
export * from "./Events/IRoomstayEvent.type";
|
|
62
62
|
/**
|
|
63
63
|
* General
|
|
64
64
|
*/
|
|
65
|
-
export * from
|
|
66
|
-
export * from
|
|
65
|
+
export * from "./General/HttpMethod.enum";
|
|
66
|
+
export * from "./General/IMessage.type";
|
|
67
|
+
/**
|
|
68
|
+
* Media
|
|
69
|
+
*/
|
|
70
|
+
export * from "./Media/IMedia.type";
|
|
File without changes
|
package/dist/utils/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/web.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define("@roomstay/core",["decimal.js"],(e=>(()=>{"use strict";var n={60:n=>{n.exports=e}},t={};function o(e){var r=t[e];if(void 0!==r)return r.exports;var a=t[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{let e,n,t
|
|
1
|
+
define("@roomstay/core",["decimal.js"],(e=>(()=>{"use strict";var n={60:n=>{n.exports=e}},t={};function o(e){var r=t[e];if(void 0!==r)return r.exports;var a=t[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{let e,n,t;o.r(r),o.d(r,{EBookingPaymentMethod:()=>e,ECompanyProvider:()=>c,EDistanceUnitType:()=>p,EGuarantyPolicyPrepaymentType:()=>f,EHotelCardProcessor:()=>n,EHotelPriceModel:()=>d,EHotelStateFieldConfiguration:()=>l,EHotelWeekdayStartsOn:()=>u,EIntegration:()=>s,EPlanpayBookingStatus:()=>t,ERMSDiscountType:()=>g,ERoomstayImageSize:()=>P,HttpMethod:()=>m,IAuxiliaryFilterType:()=>y,IBookingStatus:()=>i,PCIBookingCardProcessorTypes:()=>a,calculateTotalForMemberBooking:()=>T,nameof:()=>O,resizeRoomstayImageUrl:()=>E,roundMoney:()=>M,subset:()=>C,uppercaseString:()=>S}),function(e){e.Card="Card",e.SavedCard="SavedCard",e.Planpay="Planpay",e.Adyen="Adyen",e.PCIBookingCard="PCIBookingCard"}(e||(e={})),function(e){e.Passthrough="Passthrough",e.Adyen="Adyen",e.Till="Till",e.RMSPay="RMSPay",e.Windcave="Windcave"}(n||(n={})),function(e){e.Unknown="unknown",e.Unpaid="unpaid",e.Accepted="accepted",e.Cancelled="cancelled",e.Refunded="refunded",e.Rejected="rejected"}(t||(t={}));const a=[];let i,c,d,l,u,s,y,p,g,P,f,m;function S(e){return e.toUpperCase()}!function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(i||(i={})),function(e){e.Synxis="Synxis",e.Availpro="Availpro",e.RMS="RMS",e.Siteminder="Siteminder",e.Roomstay="Roomstay"}(c||(c={})),function(e){e.PerPerson="PerPerson",e.PerDay="PerDay",e.PerOccupancy="PerOccupancy"}(d||(d={})),function(e){e.NotIncluded="NotIncluded",e.Optional="Optional",e.Required="Required"}(l||(l={})),function(e){e.Monday="monday",e.Sunday="sunday"}(u||(u={})),function(e){e.Big4="Big4",e.RmsTop10="Top10",e.Top10="NewTop10",e.Gday="Gday",e.Salesforce="Salesforce"}(s||(s={})),function(e){e.AreaDwellingLength="AreaDwellingLength",e.AreaDwellingType="AreaDwellingType"}(y||(y={})),function(e){e.Metric="metric",e.Imperial="imperial"}(p||(p={})),function(e){e.Percentage="Percentage",e.Amount="Amount",e.Bogo="BOGO",e.NightlyRateOverride="NightlyRateOverride"}(g||(g={})),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"}(P||(P={})),function(e){e.FixedAmount="fixed",e.Percentage="percentage",e.Nights="nights"}(f||(f={})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.HEAD="HEAD"}(m||(m={}));const T=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},E=(e,n)=>e.includes("cdn.app.roomstay.io")?e+"?w="+n:e,O=e=>e,C=(e,n)=>{const t={};return n.forEach((n=>{n in e&&(t[n]=e[n])})),t};var v=o(60),A=o.n(v);const M=e=>new(A())(e).toDecimalPlaces(2).toNumber()})(),r})()));
|