@roomstay/core 0.1.53-0 → 0.1.53-1

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 (58) hide show
  1. package/dist/index.d.ts +0 -0
  2. package/dist/node.js +0 -0
  3. package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +0 -0
  4. package/dist/types/Booking/IBookingPayment.type.d.ts +0 -0
  5. package/dist/types/Booking/IBookingQuote.type.d.ts +0 -0
  6. package/dist/types/Booking/IBookingStatus.type.d.ts +0 -0
  7. package/dist/types/Booking/IPrice.type.d.ts +0 -0
  8. package/dist/types/Company/ECompanyProvider.enum.d.ts +0 -0
  9. package/dist/types/Company/IAdminCompany.type.d.ts +1 -0
  10. package/dist/types/Company/IAdminCompanyUser.type.d.ts +0 -0
  11. package/dist/types/Events/IRoomstayEvent.type.d.ts +0 -0
  12. package/dist/types/General/HttpMethod.enum.d.ts +0 -0
  13. package/dist/types/General/IJsonString.type.d.ts +0 -0
  14. package/dist/types/Hotel/EHotelPriceModel.enum.d.ts +0 -0
  15. package/dist/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +0 -0
  16. package/dist/types/Hotel/IAuxiliaryFilter.type.d.ts +0 -0
  17. package/dist/types/Hotel/IHotelColorScheme.type.d.ts +0 -0
  18. package/dist/types/Hotel/IHotelOverrides.type.d.ts +0 -0
  19. package/dist/types/Hotel/IHotelReplica.type.d.ts +0 -0
  20. package/dist/types/Hotel/IHotelService.type.d.ts +0 -0
  21. package/dist/types/Image/IRoomstayImage.type.d.ts +0 -0
  22. package/dist/types/Member/IRoomstayCognitoMember.type.d.ts +0 -0
  23. package/dist/types/Member/IRoomstayMember.type.d.ts +0 -0
  24. package/dist/types/Member/IRoomstayMemberBooking.type.d.ts +0 -0
  25. package/dist/types/Member/IRoomstayMemberBookingAddress.type.d.ts +0 -0
  26. package/dist/types/Member/IRoomstayMemberBookingItem.type.d.ts +0 -0
  27. package/dist/types/Member/IRoomstayMemberBookingProfile.type.d.ts +0 -0
  28. package/dist/types/Member/IRoomstayMemberCards.type.d.ts +0 -0
  29. package/dist/types/Member/ISession.type.d.ts +0 -0
  30. package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +0 -0
  31. package/dist/types/RMS/ERMSDiscountType.enum.d.ts +0 -0
  32. package/dist/types/RMS/IRMSPropertyDiscount.type.d.ts +0 -0
  33. package/dist/types/RMS/IRMSRequirement.type.d.ts +0 -0
  34. package/dist/types/Room/IRoomGroup.type.d.ts +0 -0
  35. package/dist/types/index.d.ts +0 -0
  36. package/dist/utils/bookingTotal.d.ts +0 -0
  37. package/dist/utils/index.d.ts +0 -0
  38. package/dist/utils/roomstayImageResize.d.ts +0 -0
  39. package/dist/utils/uppercaseString.d.ts +0 -0
  40. package/dist/web.js +0 -0
  41. package/package.json +1 -1
  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/ICommonQueryParameters.d.ts +0 -3
  46. package/dist/types/Booking/IConfirmBooking.type.d.ts +0 -19
  47. package/dist/types/Booking/IConfirmBookingRequest.d.ts +0 -14
  48. package/dist/types/Booking/IConfirmBookingRequest.type.d.ts +0 -14
  49. package/dist/types/Booking/IGetBooking.type.d.ts +0 -7
  50. package/dist/types/Booking/IItinerary.type.d.ts +0 -99
  51. package/dist/types/Booking/IItineraryResponse.d.ts +0 -105
  52. package/dist/types/Booking/IPackage.type.d.ts +0 -89
  53. package/dist/types/Booking/IPencilReservation.type.d.ts +0 -16
  54. package/dist/types/Booking/IPlaceBooking.type.d.ts +0 -83
  55. package/dist/types/Booking/IRollbackBooking.type.d.ts +0 -6
  56. package/dist/types/Booking/Package.types.d.ts +0 -89
  57. package/dist/types/Package/IPackage.type.d.ts +0 -101
  58. package/dist/utils/nameof.d.ts +0 -2
package/dist/index.d.ts CHANGED
File without changes
package/dist/node.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -22,6 +22,7 @@ export interface IAdminCompany {
22
22
  apiUrl: string;
23
23
  };
24
24
  }[];
25
+ enableLighthouseAvailability: boolean;
25
26
  }
26
27
  export type IAdminGetCompaniesResponse = IAdminCompany[];
27
28
  /** What the API expects */
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/web.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.53-0",
3
+ "version": "0.1.53-1",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -1,24 +0,0 @@
1
- export declare enum EAddonPricingType {
2
- PER_STAY = "Per stay",
3
- PER_NIGHT = "Per night",
4
- PER_PERSON = "Per person",
5
- PER_PERSON_PER_NIGHT = "Per person per night",
6
- PER_ALL_PERSONS = "Per all persons",
7
- PER_ALL_PERSONS_PER_NIGHT = "Per all persons per night"
8
- }
9
- export type IAddonPriceDetails = {
10
- adultPrice: number;
11
- childPrice: number;
12
- price: number;
13
- adultFee: number;
14
- childFee: number;
15
- fee: number;
16
- adultFees?: IAddonPriceDetailsFee[];
17
- childFees?: IAddonPriceDetailsFee[];
18
- fees?: IAddonPriceDetailsFee[];
19
- pricingType: EAddonPricingType;
20
- };
21
- export type IAddonPriceDetailsFee = {
22
- name: string;
23
- amount: number;
24
- };
@@ -1,7 +0,0 @@
1
- export declare enum EBookingStatus {
2
- Pending = "Pending",
3
- Processing = "Processing",
4
- Committed = "Committed",
5
- Cancelled = "Cancelled",
6
- Reverted = "Reverted"
7
- }
@@ -1,7 +0,0 @@
1
- export declare enum EBookingStatus {
2
- Pending = "Pending",
3
- Processing = "Processing",
4
- Committed = "Committed",
5
- Cancelled = "Cancelled",
6
- Reverted = "Reverted"
7
- }
@@ -1,3 +0,0 @@
1
- export type ICommonQueryParameters = {
2
- language?: string;
3
- };
@@ -1,19 +0,0 @@
1
- import { IRoomstayMemberJWTData } from '../Member/IRoomstayMemberJWTData.type';
2
- import { ICommonQueryParameters } from './ICommonQueryParameters.type';
3
- import { ItineraryResponse } from './Itinerary.types';
4
- export type IConfirmBookingRequest = {
5
- reservationIds: string[];
6
- itineraryId: string;
7
- planpayCheckoutId?: string;
8
- paymentId?: string;
9
- roomstayId?: string;
10
- frontendMember?: IRoomstayMemberJWTData;
11
- source?: 'External' | 'Frontend' | 'Admin';
12
- isBlocking?: boolean;
13
- } & ICommonQueryParameters;
14
- export type IConfirmBookingResponse = ItineraryResponse;
15
- export type ICancelBookingRequest = {
16
- email?: string;
17
- reservationId: string;
18
- frontendMember?: IRoomstayMemberJWTData;
19
- } & ICommonQueryParameters;
@@ -1,14 +0,0 @@
1
- import { IRoomstayMemberJWTData } from 'types/Member/IRoomstayMemberJWTData.type';
2
- import { ICommonQueryParameters } from './ICommonQueryParameters';
3
- import { IItineraryResponse } from './IItineraryResponse';
4
- export type IConfirmBookingRequest = {
5
- reservationIds: string[];
6
- itineraryId: string;
7
- planpayCheckoutId?: string;
8
- paymentId?: string;
9
- roomstayId?: string;
10
- frontendMember?: IRoomstayMemberJWTData;
11
- source?: 'External' | 'Frontend' | 'Admin';
12
- isBlocking?: boolean;
13
- } & ICommonQueryParameters;
14
- export type IConfirmBookingResponse = IItineraryResponse;
@@ -1,14 +0,0 @@
1
- import { IRoomstayMemberJWTData } from 'types/Member/IRoomstayMemberJWTData.type';
2
- import { ICommonQueryParameters } from './ICommonQueryParameters.type';
3
- import { IItineraryResponse } from './IItinerary.type';
4
- export type IConfirmBookingRequest = {
5
- reservationIds: string[];
6
- itineraryId: string;
7
- planpayCheckoutId?: string;
8
- paymentId?: string;
9
- roomstayId?: string;
10
- frontendMember?: IRoomstayMemberJWTData;
11
- source?: 'External' | 'Frontend' | 'Admin';
12
- isBlocking?: boolean;
13
- } & ICommonQueryParameters;
14
- export type IConfirmBookingResponse = IItineraryResponse;
@@ -1,7 +0,0 @@
1
- import { ICommonQueryParameters } from './ICommonQueryParameters.type';
2
- import { ItineraryResponse } from './Itinerary.types';
3
- export type IGetBookingRequest = {
4
- email?: string;
5
- reservationId: string;
6
- } & ICommonQueryParameters;
7
- export type IGetBookingResponse = ItineraryResponse;
@@ -1,99 +0,0 @@
1
- import { EBookingPaymentMethod } from './IBookingPayment.type';
2
- import { IPrice } from './IPrice.type';
3
- import { IReservedPackage } from '../Package/IPackage.type';
4
- export type IItineraryResponse = {
5
- roomstayId: string;
6
- itineraryNumber?: string;
7
- total?: IAmount;
8
- hotelFrontendId?: string;
9
- reservations: IReservation[];
10
- payment?: {
11
- planpay?: {
12
- id: string;
13
- checkoutWorkflow: ICheckoutWorkflowType;
14
- };
15
- external?: {
16
- id: string;
17
- redirectUrl: string;
18
- };
19
- };
20
- feesSummary?: IItemisedBookingFeeResponse[];
21
- itemisedFees?: IItemisedBookingFeeResponse[];
22
- warnings?: string[];
23
- };
24
- export type IReservation = {
25
- reservationNumber: string;
26
- roomType: string;
27
- roomCode: string;
28
- rate: string;
29
- rateCode?: string;
30
- images: string[];
31
- guaranteePolicy?: string;
32
- cancellationPolicy?: string;
33
- checkInDate: string;
34
- checkOutDate: string;
35
- nights: {
36
- [date: string]: IPrice;
37
- };
38
- guestCounts: IGuestCounts;
39
- guest: IGuestProfile;
40
- paymentCard: {
41
- type: string | undefined;
42
- last4: string;
43
- expiry: string;
44
- name: string;
45
- };
46
- paymentMethod: EBookingPaymentMethod;
47
- total: IAmount;
48
- status: string;
49
- isCancelable: boolean;
50
- addons: IReservedPackage[] | undefined;
51
- comments?: string[];
52
- specialRequests?: string[];
53
- promoCode?: string;
54
- guaranteePolicyLongDescription?: string;
55
- cancellationPolicyLongDescription?: string;
56
- itemisedFees?: IItemisedBookingFeeResponse[];
57
- };
58
- export type IGuestProfile = {
59
- title?: string;
60
- firstName?: string;
61
- middleName?: string;
62
- lastName?: string;
63
- nameSuffix?: string;
64
- phone?: string;
65
- email?: string;
66
- address: IAddress;
67
- marketingOptIn?: boolean;
68
- country: string;
69
- };
70
- export type IGuestCounts = {
71
- adults: number;
72
- children: number;
73
- };
74
- export type IAddress = {
75
- line1?: string;
76
- line2?: string;
77
- line3?: string;
78
- city?: string;
79
- postalCode?: string;
80
- state?: string;
81
- country?: string;
82
- };
83
- export type IAmount = {
84
- beforeTax: number;
85
- afterTax: number;
86
- beforeFees?: number;
87
- };
88
- export type ICheckoutWorkflowType = {
89
- sdkWidget: {
90
- type: string;
91
- id: string;
92
- scriptUrl: string;
93
- };
94
- };
95
- export type IItemisedBookingFeeResponse = {
96
- name: string;
97
- description?: string;
98
- amount: number;
99
- };
@@ -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,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,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,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;