@roomstay/core 0.1.53-6 → 0.1.53-8

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.
Files changed (65) hide show
  1. package/dist/index.d.ts +0 -0
  2. package/dist/node.js +1 -1
  3. package/dist/types/Booking/IBookingPayment.type.d.ts +30 -26
  4. package/dist/types/Booking/IBookingQuote.type.d.ts +0 -0
  5. package/dist/types/Booking/Itinerary.types.d.ts +2 -11
  6. package/dist/types/Company/ECompanyProvider.enum.d.ts +2 -1
  7. package/dist/types/Company/IAdminCompany.type.d.ts +0 -0
  8. package/dist/types/Company/IAdminCompanyUser.type.d.ts +0 -0
  9. package/dist/types/Events/IRoomstayEvent.type.d.ts +0 -0
  10. package/dist/types/General/HttpMethod.enum.d.ts +0 -0
  11. package/dist/types/Hotel/EHotelPriceModel.enum.d.ts +0 -0
  12. package/dist/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +0 -0
  13. package/dist/types/Hotel/IAuxiliaryFilter.type.d.ts +0 -0
  14. package/dist/types/Hotel/IHotelColorScheme.type.d.ts +0 -0
  15. package/dist/types/Hotel/IHotelOverrides.type.d.ts +0 -0
  16. package/dist/types/Hotel/IHotelReplica.type.d.ts +0 -0
  17. package/dist/types/Hotel/IHotelService.type.d.ts +0 -0
  18. package/dist/types/Image/IRoomstayImage.type.d.ts +0 -0
  19. package/dist/types/Member/IRoomstayCognitoMember.type.d.ts +0 -0
  20. package/dist/types/Member/IRoomstayMember.type.d.ts +0 -0
  21. package/dist/types/Member/IRoomstayMemberBooking.type.d.ts +0 -0
  22. package/dist/types/Member/IRoomstayMemberBookingAddress.type.d.ts +0 -0
  23. package/dist/types/Member/IRoomstayMemberBookingItem.type.d.ts +0 -0
  24. package/dist/types/Member/IRoomstayMemberBookingProfile.type.d.ts +0 -0
  25. package/dist/types/Member/IRoomstayMemberCards.type.d.ts +0 -0
  26. package/dist/types/Member/ISession.type.d.ts +0 -0
  27. package/dist/types/OHIP/IOHIPConfiguration.types.d.ts +9 -0
  28. package/dist/types/OHIP/index.d.ts +1 -0
  29. package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +0 -0
  30. package/dist/types/RMS/ERMSDiscountType.enum.d.ts +0 -0
  31. package/dist/types/RMS/IRMSPropertyDiscount.type.d.ts +0 -0
  32. package/dist/types/RMS/IRMSRequirement.type.d.ts +0 -0
  33. package/dist/types/Room/IRoomGroup.type.d.ts +0 -0
  34. package/dist/types/index.d.ts +4 -0
  35. package/dist/utils/bookingTotal.d.ts +0 -0
  36. package/dist/utils/index.d.ts +0 -0
  37. package/dist/utils/roomstayImageResize.d.ts +0 -0
  38. package/dist/utils/uppercaseString.d.ts +0 -0
  39. package/dist/web.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/node.js.LICENSE.txt +0 -7
  42. package/dist/types/Addons/Addon.type.d.ts +0 -24
  43. package/dist/types/Booking/Booking.types.d.ts +0 -7
  44. package/dist/types/Booking/EBookingStatus.type.d.ts +0 -7
  45. package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +0 -11
  46. package/dist/types/Booking/IBookingStatus.type.d.ts +0 -5
  47. package/dist/types/Booking/ICheckoutBrowserSession.type.d.ts +0 -14
  48. package/dist/types/Booking/ICommonQueryParameters.d.ts +0 -3
  49. package/dist/types/Booking/IConfirmBooking.type.d.ts +0 -19
  50. package/dist/types/Booking/IConfirmBookingRequest.d.ts +0 -14
  51. package/dist/types/Booking/IConfirmBookingRequest.type.d.ts +0 -14
  52. package/dist/types/Booking/IGetBooking.type.d.ts +0 -7
  53. package/dist/types/Booking/IItinerary.type.d.ts +0 -99
  54. package/dist/types/Booking/IItineraryResponse.d.ts +0 -105
  55. package/dist/types/Booking/IPackage.type.d.ts +0 -89
  56. package/dist/types/Booking/IPencilReservation.type.d.ts +0 -16
  57. package/dist/types/Booking/IPlaceBooking.type.d.ts +0 -83
  58. package/dist/types/Booking/IPrice.type.d.ts +0 -7
  59. package/dist/types/Booking/IRollbackBooking.type.d.ts +0 -6
  60. package/dist/types/Booking/Package.types.d.ts +0 -89
  61. package/dist/types/General/IJsonString.type.d.ts +0 -6
  62. package/dist/types/Package/IPackage.type.d.ts +0 -101
  63. package/dist/types/Pagination.types.d.ts +0 -11
  64. package/dist/utils/nameof.d.ts +0 -2
  65. package/dist/web.js.LICENSE.txt +0 -7
@@ -1,105 +0,0 @@
1
- import { EBookingPaymentMethod } from './IBookingPayment.type';
2
- import { IReservedPackage } from './Package.types';
3
- export type IItineraryResponse = {
4
- roomstayId: string;
5
- itineraryNumber?: string;
6
- total?: IAmount;
7
- hotelFrontendId?: string;
8
- reservations: IReservation[];
9
- payment?: {
10
- planpay?: {
11
- id: string;
12
- checkoutWorkflow: ICheckoutWorkflowType;
13
- };
14
- external?: {
15
- id: string;
16
- redirectUrl: string;
17
- };
18
- };
19
- feesSummary?: IItemisedBookingFeeResponse[];
20
- itemisedFees?: IItemisedBookingFeeResponse[];
21
- warnings?: string[];
22
- };
23
- export type IReservation = {
24
- reservationNumber: string;
25
- roomType: string;
26
- roomCode: string;
27
- rate: string;
28
- rateCode?: string;
29
- images: string[];
30
- guaranteePolicy?: string;
31
- cancellationPolicy?: string;
32
- checkInDate: string;
33
- checkOutDate: string;
34
- nights: {
35
- [date: string]: IPrice;
36
- };
37
- guestCounts: IGuestCounts;
38
- guest: IGuestProfile;
39
- paymentCard: {
40
- type: string | undefined;
41
- last4: string;
42
- expiry: string;
43
- name: string;
44
- };
45
- paymentMethod: EBookingPaymentMethod;
46
- total: IAmount;
47
- status: string;
48
- isCancelable: boolean;
49
- addons: IReservedPackage[] | undefined;
50
- comments?: string[];
51
- specialRequests?: string[];
52
- promoCode?: string;
53
- guaranteePolicyLongDescription?: string;
54
- cancellationPolicyLongDescription?: string;
55
- itemisedFees?: IItemisedBookingFeeResponse[];
56
- };
57
- export type IGuestProfile = {
58
- title?: string;
59
- firstName?: string;
60
- middleName?: string;
61
- lastName?: string;
62
- nameSuffix?: string;
63
- phone?: string;
64
- email?: string;
65
- address: IAddress;
66
- marketingOptIn?: boolean;
67
- country: string;
68
- };
69
- export type IGuestCounts = {
70
- adults: number;
71
- children: number;
72
- };
73
- export type IAddress = {
74
- line1?: string;
75
- line2?: string;
76
- line3?: string;
77
- city?: string;
78
- postalCode?: string;
79
- state?: string;
80
- country?: string;
81
- };
82
- export type IAmount = {
83
- beforeTax: number;
84
- afterTax: number;
85
- beforeFees?: number;
86
- };
87
- export type IPrice = {
88
- cost: number;
89
- discount: number;
90
- tax: number;
91
- fee: number;
92
- total: number;
93
- };
94
- export type ICheckoutWorkflowType = {
95
- sdkWidget: {
96
- type: string;
97
- id: string;
98
- scriptUrl: string;
99
- };
100
- };
101
- export type IItemisedBookingFeeResponse = {
102
- name: string;
103
- description?: string;
104
- amount: number;
105
- };
@@ -1,89 +0,0 @@
1
- import { IAddonPriceDetailsFee } from 'types/Addons/Addon.type';
2
- import { IItemisedBookingFeeResponse } from './IItinerary.type';
3
- export type IPackage = {
4
- /**
5
- * The SynXis CR RatePlan Code associated with the Package if the Package is restricted to certain RatePlans
6
- */
7
- ratePlanCode?: string;
8
- name: string;
9
- description: string;
10
- /**
11
- * Whether the price for this package is included in the room rate.
12
- * (Always `false` unless the price is zero)
13
- */
14
- inclusive: boolean;
15
- image: string[];
16
- url?: string;
17
- /**
18
- * Defines how a service is priced.
19
- * Values:
20
- * Per Stay
21
- * Per Night
22
- * Per Person
23
- * Per Person Per Night
24
- */
25
- pricingType: string;
26
- /**
27
- * Number of available items for sale.
28
- */
29
- quantity?: number;
30
- category: string;
31
- cancelPenalty?: string | null;
32
- guaranteeDescription?: string | null;
33
- availability: {
34
- [date: string]: IPriceInfo;
35
- };
36
- };
37
- export type IReservedPackage = IPackage & {
38
- code?: string | undefined;
39
- price?: number;
40
- fees?: number;
41
- itemisedFees?: IItemisedBookingFeeResponse[];
42
- adultQuantity?: number;
43
- childQuantity?: number;
44
- adultPrice?: number;
45
- childPrice?: number;
46
- startDate?: string;
47
- startTime?: string;
48
- hideDatePicker?: boolean;
49
- order?: number;
50
- };
51
- export type IPriceInfo = {
52
- /**
53
- * Number of available items for sale.
54
- */
55
- quantity: number;
56
- /**
57
- * Price per quantity
58
- */
59
- price?: number;
60
- adultPrice?: number;
61
- childPrice?: number;
62
- fees?: IAddonPriceDetailsFee[];
63
- adultFees?: IAddonPriceDetailsFee[];
64
- childFees?: IAddonPriceDetailsFee[];
65
- timeSlots?: ITimeSlot[];
66
- };
67
- export type ITimeSlot = {
68
- /**
69
- The start date and time when the package is available.
70
- If the package applies during the whole stay, this node is not returned unless the time needs to be selected. In that case, the Start and End dates do not
71
- include the date: @Start="T07:30:00" and @End="T17:30:00" and @Increment="00:60:00"
72
- Type: DateTime
73
- **/
74
- startTime?: string;
75
- /**
76
- The end date / time when the package is available.
77
- If the package component applies during the whole stay, this node is not returned unless the time needs to be selected. In that case, the Start and End dates
78
- do not include the date: @Start="T07:30:00" and @End="T17:30:00" and @Increment="00:60:00"
79
- Type: DateTime
80
- */
81
- endTime?: string;
82
- /**
83
- Used with @Start and @End. Indicates the interval when the package or service is available.
84
- For example, a package with golf lessons from 7:30 am to 5:30 pm with instructions and available hourly has the TimeSpan attributes set as: @Start="2015-
85
- 010-28T07:30:00" and @End="2015-10-28T17:30:00" and @Increment="00:60:00"
86
- Type: Time
87
- */
88
- increment?: string;
89
- };
@@ -1,16 +0,0 @@
1
- import { IBookingQuoteRequest, IBookingQuoteResponse } from './IBookingQuote.type';
2
- export type IPencilReservationRequest = IBookingQuoteRequest & {
3
- pencilId?: string;
4
- rows: {
5
- pencilId: string;
6
- } & IBookingQuoteRequest['rows'][number][];
7
- };
8
- export type IPencilReservationResponse = {
9
- timeout?: Date;
10
- pencilId?: string;
11
- rows: {
12
- rowId: string;
13
- pencilId: string;
14
- }[];
15
- quote?: IBookingQuoteResponse;
16
- };
@@ -1,83 +0,0 @@
1
- import { IRoomstayMemberJWTData } from '../Member/IRoomstayMemberJWTData.type';
2
- import { IBookingPayment } from './IBookingPayment.type';
3
- import { ItineraryResponse } from './Itinerary.types';
4
- import { ICommonQueryParameters } from './ICommonQueryParameters.type';
5
- export type IPlaceBookingRequest = {
6
- Rooms: IPlaceBookingRoomsDTO[];
7
- Services: IPlaceBookingServicesDTO[];
8
- Profiles?: IPlaceBookingProfilesDTO[];
9
- SpecialRequest?: string;
10
- Comments?: string;
11
- IATACode?: string;
12
- SessionId?: string;
13
- PencilId?: string;
14
- Tracking: {
15
- sourceIp: string;
16
- userAgent: string;
17
- sourceUrl: string;
18
- } & IPlaceBookingGCLIDAndUTM;
19
- payment: IBookingPayment;
20
- frontendMember?: IRoomstayMemberJWTData;
21
- } & ICommonQueryParameters;
22
- export type IRepeatPaymentRequest = IPlaceBookingRequest & {
23
- RoomstayId: string;
24
- };
25
- export type IPlaceBookingResponse = ItineraryResponse;
26
- export type IPlaceBookingRoomsDTO = {
27
- RoomType: string;
28
- RatePlan: string;
29
- PromoCode?: string;
30
- Adults: number;
31
- Children: number;
32
- Infants?: number;
33
- CheckInDate: Date;
34
- CheckOutDate: Date;
35
- QuoteId?: number;
36
- RowId?: string;
37
- MemberNumber?: string;
38
- PencilId?: string;
39
- };
40
- export type IPlaceBookingServicesDTO = {
41
- Code: string;
42
- RatePlanCode: string;
43
- StartDate: Date;
44
- StartTime?: string;
45
- Quantity?: number;
46
- Adults?: number;
47
- Children?: number;
48
- PricingType?: string;
49
- };
50
- export type IPlaceBookingProfilesDTO = {
51
- Title?: string;
52
- FirstName: string;
53
- MiddleName?: string;
54
- LastName: string;
55
- NameSuffix?: string;
56
- Phone: string;
57
- Email: string;
58
- Address: {
59
- Line1: string;
60
- Line2?: string;
61
- Line3?: string;
62
- City?: string;
63
- PostalCode?: string;
64
- State?: string;
65
- Country?: string;
66
- CountryId?: number;
67
- CountryCode?: string;
68
- };
69
- MarketingOptIn: boolean;
70
- AuxInputs: {
71
- [auxInputId: string]: string;
72
- };
73
- };
74
- export type IPlaceBookingGCLIDAndUTM = {
75
- utm: {
76
- utmSource: string | null;
77
- utmMedium: string | null;
78
- utmCampaign: string | null;
79
- utmTerm: string | null;
80
- utmContent: string | null;
81
- };
82
- gclid: string | null;
83
- };
@@ -1,7 +0,0 @@
1
- export type IPrice = {
2
- cost: number;
3
- discount: number;
4
- tax: number;
5
- fee: number;
6
- total: number;
7
- };
@@ -1,6 +0,0 @@
1
- import { EBookingStatus } from './EBookingStatus.type';
2
- import { IConfirmBookingRequest } from './IConfirmBooking.type';
3
- export type IRollbackBookingRequest = IConfirmBookingRequest & {
4
- status: EBookingStatus.Reverted | EBookingStatus.Cancelled;
5
- reason: string;
6
- };
@@ -1,89 +0,0 @@
1
- import { IAddonPriceDetailsFee } from 'types/Addons/Addon.types';
2
- import { IItemisedBookingFeeResponse } from './IItineraryResponse';
3
- export type IPackage = {
4
- /**
5
- * The SynXis CR RatePlan Code associated with the Package if the Package is restricted to certain RatePlans
6
- */
7
- ratePlanCode?: string;
8
- name: string;
9
- description: string;
10
- /**
11
- * Whether the price for this package is included in the room rate.
12
- * (Always `false` unless the price is zero)
13
- */
14
- inclusive: boolean;
15
- image: string[];
16
- url?: string;
17
- /**
18
- * Defines how a service is priced.
19
- * Values:
20
- * Per Stay
21
- * Per Night
22
- * Per Person
23
- * Per Person Per Night
24
- */
25
- pricingType: string;
26
- /**
27
- * Number of available items for sale.
28
- */
29
- quantity?: number;
30
- category: string;
31
- cancelPenalty?: string | null;
32
- guaranteeDescription?: string | null;
33
- availability: {
34
- [date: string]: IPriceInfo;
35
- };
36
- };
37
- export type IReservedPackage = IPackage & {
38
- code?: string | undefined;
39
- price?: number;
40
- fees?: number;
41
- itemisedFees?: IItemisedBookingFeeResponse[];
42
- adultQuantity?: number;
43
- childQuantity?: number;
44
- adultPrice?: number;
45
- childPrice?: number;
46
- startDate?: string;
47
- startTime?: string;
48
- hideDatePicker?: boolean;
49
- order?: number;
50
- };
51
- export type IPriceInfo = {
52
- /**
53
- * Number of available items for sale.
54
- */
55
- quantity: number;
56
- /**
57
- * Price per quantity
58
- */
59
- price?: number;
60
- adultPrice?: number;
61
- childPrice?: number;
62
- fees?: IAddonPriceDetailsFee[];
63
- adultFees?: IAddonPriceDetailsFee[];
64
- childFees?: IAddonPriceDetailsFee[];
65
- timeSlots?: ITimeSlot[];
66
- };
67
- export type ITimeSlot = {
68
- /**
69
- The start date and time when the package is available.
70
- If the package applies during the whole stay, this node is not returned unless the time needs to be selected. In that case, the Start and End dates do not
71
- include the date: @Start="T07:30:00" and @End="T17:30:00" and @Increment="00:60:00"
72
- Type: DateTime
73
- **/
74
- startTime?: string;
75
- /**
76
- The end date / time when the package is available.
77
- If the package component applies during the whole stay, this node is not returned unless the time needs to be selected. In that case, the Start and End dates
78
- do not include the date: @Start="T07:30:00" and @End="T17:30:00" and @Increment="00:60:00"
79
- Type: DateTime
80
- */
81
- endTime?: string;
82
- /**
83
- Used with @Start and @End. Indicates the interval when the package or service is available.
84
- For example, a package with golf lessons from 7:30 am to 5:30 pm with instructions and available hourly has the TimeSpan attributes set as: @Start="2015-
85
- 010-28T07:30:00" and @End="2015-10-28T17:30:00" and @Increment="00:60:00"
86
- Type: Time
87
- */
88
- increment?: string;
89
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * Basic object to wrap a string that is de/encoded as JSON.
3
- */
4
- export type IJsonString = {
5
- message: string;
6
- };
@@ -1,101 +0,0 @@
1
- import { IAddonPriceDetailsFee } from '../Addons/Addon.type';
2
- import { IItemisedBookingFeeResponse } from '../Booking/Itinerary.types';
3
- import { ICommonQueryParameters } from '../Booking/ICommonQueryParameters.type';
4
- export type IPackage = {
5
- /**
6
- * The SynXis CR RatePlan Code associated with the Package if the Package is restricted to certain RatePlans
7
- */
8
- ratePlanCode?: string;
9
- name: string;
10
- description: string;
11
- /**
12
- * Whether the price for this package is included in the room rate.
13
- * (Always `false` unless the price is zero)
14
- */
15
- inclusive: boolean;
16
- image: string[];
17
- url?: string;
18
- /**
19
- * Defines how a service is priced.
20
- * Values:
21
- * Per Stay
22
- * Per Night
23
- * Per Person
24
- * Per Person Per Night
25
- */
26
- pricingType: string;
27
- /**
28
- * Number of available items for sale.
29
- */
30
- quantity?: number;
31
- category: string;
32
- cancelPenalty?: string | null;
33
- guaranteeDescription?: string | null;
34
- availability: {
35
- [date: string]: IPriceInfo;
36
- };
37
- };
38
- export type IReservedPackage = IPackage & {
39
- code?: string | undefined;
40
- price?: number;
41
- fees?: number;
42
- itemisedFees?: IItemisedBookingFeeResponse[];
43
- adultQuantity?: number;
44
- childQuantity?: number;
45
- adultPrice?: number;
46
- childPrice?: number;
47
- startDate?: string;
48
- startTime?: string;
49
- hideDatePicker?: boolean;
50
- order?: number;
51
- };
52
- export type IPriceInfo = {
53
- /**
54
- * Number of available items for sale.
55
- */
56
- quantity: number;
57
- /**
58
- * Price per quantity
59
- */
60
- price?: number;
61
- adultPrice?: number;
62
- childPrice?: number;
63
- fees?: IAddonPriceDetailsFee[];
64
- adultFees?: IAddonPriceDetailsFee[];
65
- childFees?: IAddonPriceDetailsFee[];
66
- timeSlots?: ITimeSlot[];
67
- };
68
- export type ITimeSlot = {
69
- /**
70
- The start date and time when the package is available.
71
- If the package applies during the whole stay, this node is not returned unless the time needs to be selected. In that case, the Start and End dates do not
72
- include the date: @Start="T07:30:00" and @End="T17:30:00" and @Increment="00:60:00"
73
- Type: DateTime
74
- **/
75
- startTime?: string;
76
- /**
77
- The end date / time when the package is available.
78
- If the package component applies during the whole stay, this node is not returned unless the time needs to be selected. In that case, the Start and End dates
79
- do not include the date: @Start="T07:30:00" and @End="T17:30:00" and @Increment="00:60:00"
80
- Type: DateTime
81
- */
82
- endTime?: string;
83
- /**
84
- Used with @Start and @End. Indicates the interval when the package or service is available.
85
- For example, a package with golf lessons from 7:30 am to 5:30 pm with instructions and available hourly has the TimeSpan attributes set as: @Start="2015-
86
- 010-28T07:30:00" and @End="2015-10-28T17:30:00" and @Increment="00:60:00"
87
- Type: Time
88
- */
89
- increment?: string;
90
- };
91
- export type IGetPackagesRequest = {
92
- adults?: number;
93
- children?: number;
94
- checkInDate: Date;
95
- checkOutDate: Date;
96
- rate: string;
97
- room?: string;
98
- } & ICommonQueryParameters;
99
- export type IGetPackagesResponse = {
100
- [packageName: string]: IReservedPackage;
101
- };
@@ -1,11 +0,0 @@
1
- export type IPaginatedRequest = {
2
- pageSize?: number;
3
- currentPage?: number;
4
- };
5
- export type IPaginatedResponse<T> = {
6
- pageSize: number;
7
- currentPage: number;
8
- totalPages: number;
9
- totalItems: number;
10
- data: T[];
11
- };
@@ -1,2 +0,0 @@
1
- export declare const nameof: <T>(name: Extract<keyof T, string>) => string;
2
- export declare const nameofField: <T>(instance: T, name: keyof T) => string;
@@ -1,7 +0,0 @@
1
- /*!
2
- * decimal.js v10.4.3
3
- * An arbitrary-precision Decimal type for JavaScript.
4
- * https://github.com/MikeMcl/decimal.js
5
- * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
6
- * MIT Licence
7
- */