@roomstay/core 0.0.9 → 0.1.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/node.js +1 -0
- package/dist/types/Booking/IBookingStatus.type.d.ts +5 -0
- package/dist/types/Booking/IPrice.type.d.ts +7 -0
- package/dist/types/Member/IRoomstayMember.type.d.ts +3 -1
- package/dist/types/Member/IRoomstayMemberBooking.type.d.ts +12 -0
- package/dist/types/Member/IRoomstayMemberBookingAddress.type.d.ts +9 -0
- package/dist/types/Member/IRoomstayMemberBookingItem.type.d.ts +21 -0
- package/dist/types/Member/IRoomstayMemberBookingProfile.type.d.ts +11 -0
- package/dist/types/Member/IRoomstayMemberCards.type.d.ts +12 -0
- package/dist/types/Member/ISession.type.d.ts +4 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/web.js +1 -0
- package/package.json +20 -9
- package/dist/main.js +0 -1
package/dist/node.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},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 o;function r(e){return e.toUpperCase()}e.r(t),e.d(t,{IBookingStatus:()=>o,uppercaseString:()=>r}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(o||(o={})),module.exports=t})();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IRoomstayMemberBooking, IRoomstayMemberCards } from '../index.js';
|
|
1
2
|
export type IRoomstayMember = {
|
|
2
3
|
username: string;
|
|
3
4
|
email: string;
|
|
@@ -10,5 +11,6 @@ export type IRoomstayMember = {
|
|
|
10
11
|
zip?: string;
|
|
11
12
|
country?: string;
|
|
12
13
|
};
|
|
13
|
-
bookings:
|
|
14
|
+
bookings: IRoomstayMemberBooking[];
|
|
15
|
+
cards: IRoomstayMemberCards[];
|
|
14
16
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IRoomstayMemberBookingItem } from './IRoomstayMemberBookingItem.type';
|
|
2
|
+
/**
|
|
3
|
+
* DynamoDB object reference for a Member Booking
|
|
4
|
+
*/
|
|
5
|
+
export interface IRoomstayMemberBooking {
|
|
6
|
+
username: string;
|
|
7
|
+
itineraryId: string;
|
|
8
|
+
hotelId: string;
|
|
9
|
+
itinerary: {
|
|
10
|
+
[id: string]: IRoomstayMemberBookingItem;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IBookingStatus, IPrice, IRoomstayMemberBookingProfile } from '../index.js';
|
|
2
|
+
export type IRoomstayMemberBookingItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
roomCode: string;
|
|
5
|
+
roomName: string;
|
|
6
|
+
images: string[];
|
|
7
|
+
rateCode: string;
|
|
8
|
+
rateName: string;
|
|
9
|
+
adults: number;
|
|
10
|
+
children?: number;
|
|
11
|
+
profile: IRoomstayMemberBookingProfile;
|
|
12
|
+
comments: string[];
|
|
13
|
+
status: IBookingStatus;
|
|
14
|
+
checkInDate: string;
|
|
15
|
+
checkOutDate: string;
|
|
16
|
+
nights: {
|
|
17
|
+
[date: string]: IPrice;
|
|
18
|
+
};
|
|
19
|
+
cancellationPolicy: string;
|
|
20
|
+
guaranteePolicy: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IRoomstayMemberBookingAddress } from '../index.js';
|
|
2
|
+
export type IRoomstayMemberBookingProfile = {
|
|
3
|
+
title: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
middleName?: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
marketingOptIn?: boolean;
|
|
10
|
+
address: IRoomstayMemberBookingAddress;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These details will always be VGS tokenized strings, for use in the front end
|
|
3
|
+
*/
|
|
4
|
+
export interface IRoomstayMemberCards {
|
|
5
|
+
username: string;
|
|
6
|
+
cardId: string;
|
|
7
|
+
cardNumber: string;
|
|
8
|
+
expiry: string;
|
|
9
|
+
securityCode: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking Details
|
|
3
|
+
*/
|
|
4
|
+
export * from './Booking/IPrice.type';
|
|
5
|
+
export * from './Booking/IBookingStatus.type';
|
|
6
|
+
/**
|
|
7
|
+
* Member Details
|
|
8
|
+
*/
|
|
1
9
|
export * from './Member/IRoomstayCognitoMember.type';
|
|
2
10
|
export * from './Member/IRoomstayMember.type';
|
|
11
|
+
export * from './Member/IRoomstayMemberBooking.type';
|
|
12
|
+
export * from './Member/IRoomstayMemberBookingItem.type';
|
|
13
|
+
export * from './Member/IRoomstayMemberBookingProfile.type';
|
|
14
|
+
export * from './Member/IRoomstayMemberBookingAddress.type';
|
|
15
|
+
export * from './Member/IRoomstayMemberCards.type';
|
|
16
|
+
export * from './Member/ISession.type';
|
package/dist/web.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("@roomstay/core",[],(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},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 o;function r(e){return e.toUpperCase()}return e.r(t),e.d(t,{IBookingStatus:()=>o,uppercaseString:()=>r}),function(e){e.Pending="Pending",e.Committed="Committed",e.Cancelled="Cancelled"}(o||(o={})),t})()));
|
package/package.json
CHANGED
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomstay/core",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
|
|
5
|
-
"
|
|
6
|
-
"type": "module",
|
|
7
|
-
"types": "./index.d.ts",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
8
6
|
"files": [
|
|
9
7
|
"dist/**/*"
|
|
10
8
|
],
|
|
9
|
+
"exports": {
|
|
10
|
+
"node": {
|
|
11
|
+
"default": "./dist/node.js"
|
|
12
|
+
},
|
|
13
|
+
"default": "./dist/web.js"
|
|
14
|
+
},
|
|
11
15
|
"repository": "git@bitbucket.org:dijitallycom/roomstay-common.git",
|
|
12
16
|
"author": "Roomstay <help@roomstay.io>",
|
|
13
17
|
"license": "MIT",
|
|
14
18
|
"scripts": {
|
|
15
|
-
"build": "tsc --emitDeclarationOnly; webpack",
|
|
16
|
-
"release": "np"
|
|
17
|
-
"prepublish": "tsc --emitDeclarationOnly; webpack"
|
|
19
|
+
"build": "tsc --emitDeclarationOnly; resolve-tspaths; webpack",
|
|
20
|
+
"release": "np"
|
|
18
21
|
},
|
|
19
22
|
"np": {
|
|
20
23
|
"name": "Roomstay Core",
|
|
21
24
|
"anyBranch": true
|
|
22
25
|
},
|
|
23
26
|
"devDependencies": {
|
|
24
|
-
"@
|
|
27
|
+
"@babel/core": "^7.11.1",
|
|
28
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
29
|
+
"@babel/plugin-proposal-decorators": "^7.10.5",
|
|
30
|
+
"@babel/plugin-transform-runtime": "^7.11.0",
|
|
31
|
+
"@babel/preset-env": "^7.11.0",
|
|
32
|
+
"@babel/preset-typescript": "^7.10.4",
|
|
33
|
+
"@babel/runtime": "^7.11.2",
|
|
34
|
+
"babel": "^6.23.0",
|
|
35
|
+
"babel-loader": "^8.1.0",
|
|
25
36
|
"np": "^7.6.2",
|
|
26
|
-
"
|
|
37
|
+
"resolve-tspaths": "^0.8.3",
|
|
27
38
|
"ts-loader": "^9.4.1",
|
|
28
39
|
"typescript": "^4.9.3",
|
|
29
40
|
"webpack": "^5.75.0",
|
package/dist/main.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{var e={854:(e,t,r)=>{var o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}.apply(t,[r,t]),void 0===o||(e.exports=o)},549:(e,t,r)=>{var o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}.apply(t,[r,t]),void 0===o||(e.exports=o)},230:function(e,t,r){var o,i,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),c=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};o=[r,t,r(854),r(549)],i=function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),c(r,t),c(o,t)}.apply(t,o),void 0===i||(e.exports=i)},928:function(e,t,r){var o,i,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),c=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};o=[r,t,r(196)],i=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),c(r,t)}.apply(t,o),void 0===i||(e.exports=i)},196:(e,t,r)=>{var o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uppercaseString=void 0,t.uppercaseString=function(e){return e.toUpperCase()}}.apply(t,[r,t]),void 0===o||(e.exports=o)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o].call(n.exports,n,n.exports,r),n.exports}r(230),r(928)})();
|