@roomstay/core 0.1.82-1 → 0.1.83

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 (45) hide show
  1. package/dist/node.js +1 -1
  2. package/dist/types/AnalyticsEvents/IAnalyticsEvent.type.d.ts +14 -12
  3. package/dist/types/AnalyticsEvents/MetaCapiTransformer.d.ts +1 -6
  4. package/dist/types/Availability/Availability.types.d.ts +1 -0
  5. package/dist/types/Booking/PlaceBooking.types.d.ts +0 -1
  6. package/dist/types/Company/IAdminCompany.type.d.ts +0 -1
  7. package/dist/types/DisplayPolicy/IDisplayPolicy.type.d.ts +23 -12
  8. package/dist/types/Maintenance/IMaintenanceStatus.type.d.ts +1 -4
  9. package/dist/types/Member/IMemberVerification.type.d.ts +0 -3
  10. package/dist/types/Member/IRoomstayMember.type.d.ts +1 -2
  11. package/dist/types/Newbook/ENewbookSyncStrategy.enum.d.ts +1 -8
  12. package/dist/types/Newbook/index.d.ts +0 -3
  13. package/dist/types/PMSSync/index.d.ts +0 -15
  14. package/dist/types/Policies/EGuaranteePolicy.enum.d.ts +0 -5
  15. package/dist/types/index.d.ts +0 -11
  16. package/dist/utils/roundMoney.d.ts +1 -11
  17. package/dist/web.js +1 -1
  18. package/package.json +1 -1
  19. package/dist/node.js.LICENSE.txt +0 -7
  20. package/dist/types/Addon/Addon.enum.d.ts +0 -14
  21. package/dist/types/Addon/Addon.type.d.ts +0 -24
  22. package/dist/types/Analytics/IAnalyticsEvent.type.d.ts +0 -35
  23. package/dist/types/Analytics/IAnalyticsSession.type.d.ts +0 -11
  24. package/dist/types/Analytics/IBigQueryResponse.type.d.ts +0 -24
  25. package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +0 -11
  26. package/dist/types/Booking/IBookingStatus.type.d.ts +0 -5
  27. package/dist/types/Booking/IPrice.type.d.ts +0 -7
  28. package/dist/types/Booking/ISplitPayment.type.d.ts +0 -89
  29. package/dist/types/Fees/IFeeOptions.type.d.ts +0 -6
  30. package/dist/types/Member/IRoomstayMemberLoyalty.type.d.ts +0 -16
  31. package/dist/types/Member/LoyaltyTiers.d.ts +0 -6
  32. package/dist/types/Newbook/ENewbookDiscountType.enum.d.ts +0 -5
  33. package/dist/types/Newbook/ENewbookSiteSelectionFeeType.enum.d.ts +0 -4
  34. package/dist/types/Newbook/ENewbookSiteSelectionType.enum.d.ts +0 -6
  35. package/dist/types/Newbook/ENewbookSyncType.enum.d.ts +0 -3
  36. package/dist/types/Newbook/INewbookDiscount.type.d.ts +0 -9
  37. package/dist/types/Newbook/INewbookInventoryItem.type.d.ts +0 -9
  38. package/dist/types/Newbook/INewbookSyncResponse.type.d.ts +0 -9
  39. package/dist/types/PMS/EPMSSyncStatus.enum.d.ts +0 -8
  40. package/dist/types/PMS/IPMSSyncResponse.type.d.ts +0 -10
  41. package/dist/types/PMS/index.d.ts +0 -2
  42. package/dist/types/RMS/ERMSAuthSyncHistoryStatus.type.d.ts +0 -8
  43. package/dist/types/RMS/IRMSSyncResponse.type.d.ts +0 -8
  44. package/dist/utils/feeOptionRules.d.ts +0 -0
  45. package/dist/web.js.LICENSE.txt +0 -7
@@ -1,89 +0,0 @@
1
- import { EHotelCardProcessor } from './IBookingPayment.type';
2
- export declare enum ESplitPaymentState {
3
- INITIATED = "initiated",
4
- GIFTCARD_AUTHORIZED = "giftcard_authorized",
5
- CC_AUTHORIZED = "cc_authorized",
6
- CAPTURED = "captured",
7
- FAILED = "failed",
8
- ROLLED_BACK = "rolled_back"
9
- }
10
- export declare enum ESplitPaymentStatus {
11
- PENDING = "pending",
12
- AUTHORIZED = "authorized",
13
- CAPTURED = "captured",
14
- FAILED = "failed"
15
- }
16
- export interface IGiftCardPaymentDetails {
17
- amount: number;
18
- cardCode: string;
19
- authorizationId?: string;
20
- status: ESplitPaymentStatus;
21
- expiresAt?: Date;
22
- }
23
- export interface ICreditCardPaymentDetails {
24
- amount: number;
25
- processor: EHotelCardProcessor;
26
- authorizationId?: string;
27
- status: ESplitPaymentStatus;
28
- expiresAt?: Date;
29
- }
30
- export interface ISplitPayment {
31
- splitPaymentId: string;
32
- totalAmount: number;
33
- giftCard: IGiftCardPaymentDetails;
34
- creditCard: ICreditCardPaymentDetails;
35
- sessionState: ESplitPaymentState;
36
- createdAt: Date;
37
- updatedAt: Date;
38
- expiresAt: Date;
39
- }
40
- export interface ISplitPaymentSession {
41
- id: string;
42
- bookingId: number;
43
- companyId: number;
44
- hotelId: string;
45
- splitPayment: ISplitPayment;
46
- }
47
- export interface IInitiateSplitPaymentRequest {
48
- bookingId: number;
49
- giftCardCode: string;
50
- giftCardAmount: number;
51
- creditCardAmount: number;
52
- }
53
- export interface IInitiateSplitPaymentResponse {
54
- sessionId: string;
55
- giftCardAmount: number;
56
- creditCardAmount: number;
57
- expiresAt: Date;
58
- }
59
- export interface IAuthorizationResult {
60
- success: boolean;
61
- authorizationId?: string;
62
- expiresAt?: Date;
63
- error?: string;
64
- }
65
- export interface ICaptureResult {
66
- success: boolean;
67
- giftCardCaptured: boolean;
68
- creditCardCaptured: boolean;
69
- error?: string;
70
- }
71
- export interface ISplitPaymentCheckoutDetails {
72
- sessionId: string;
73
- currentStep: 'giftcard' | 'creditcard' | 'capture';
74
- giftCard: {
75
- amount: number;
76
- status: ESplitPaymentStatus;
77
- authorizationId?: string;
78
- expiresAt?: Date;
79
- };
80
- creditCard: {
81
- amount: number;
82
- status: ESplitPaymentStatus;
83
- processor?: EHotelCardProcessor;
84
- redirectUrl?: string;
85
- authorizationId?: string;
86
- expiresAt?: Date;
87
- };
88
- expiresAt: Date;
89
- }
@@ -1,6 +0,0 @@
1
- export interface IFeeOptions {
2
- includeInRates: boolean;
3
- alreadyIncludedInRates: boolean;
4
- appliesToAddons: boolean;
5
- includePreviousFeesInCalculation: boolean;
6
- }
@@ -1,16 +0,0 @@
1
- export interface IRoomstayMemberLoyalty {
2
- username: string;
3
- hotelId: string;
4
- spendingBalance: number;
5
- currentTier: number | null;
6
- promoCodeId: string | null;
7
- promoCode: string | null;
8
- redeemedAt: string | null;
9
- lastBookingId: string;
10
- createdAt: string;
11
- updatedAt: string;
12
- }
13
- export interface ILoyaltyTier {
14
- threshold: number;
15
- discountPercent: number;
16
- }
@@ -1,6 +0,0 @@
1
- export interface ILoyaltyTier {
2
- /** Spending threshold in cents */
3
- threshold: number;
4
- /** Discount percentage awarded at this tier */
5
- discountPercent: number;
6
- }
@@ -1,5 +0,0 @@
1
- export declare enum ENewbookDiscountType {
2
- Percentage = "percentage",
3
- FixedPerNight = "fixed_per_night",
4
- Fixed = "fixed"
5
- }
@@ -1,4 +0,0 @@
1
- export declare enum ENewbookSiteSelectionFeeType {
2
- PerNight = "per_night",
3
- PerBooking = "per_booking"
4
- }
@@ -1,6 +0,0 @@
1
- export declare enum ENewbookSiteSelectionType {
2
- PmsAndNbo = "pms_and_nbo",
3
- Pms = "pms",
4
- Nbo = "nbo",
5
- NoFee = "no_fee"
6
- }
@@ -1,3 +0,0 @@
1
- export declare enum ENewbookSyncType {
2
- Rates = "rates"
3
- }
@@ -1,9 +0,0 @@
1
- import { ENewbookDiscountType } from './ENewbookDiscountType.enum';
2
- export type INewbookDiscount = {
3
- newbookId: number;
4
- name: string;
5
- active: boolean;
6
- discountType: ENewbookDiscountType;
7
- discountAmount: number;
8
- requiresCode: boolean;
9
- };
@@ -1,9 +0,0 @@
1
- export type INewbookInventoryItem = {
2
- newbookId: number;
3
- name: string;
4
- amount: number;
5
- perAdult: number;
6
- perChild: number;
7
- dayType: string | null;
8
- active: boolean;
9
- };
@@ -1,9 +0,0 @@
1
- import { EPMSSyncStatus } from '../PMS/EPMSSyncStatus.enum';
2
- import { ENewbookSyncStrategy } from './ENewbookSyncStrategy.enum';
3
- export interface INewbookSyncResponse {
4
- id: number;
5
- status: EPMSSyncStatus;
6
- syncData: string | null;
7
- syncType: ENewbookSyncStrategy;
8
- additionalData?: any;
9
- }
@@ -1,8 +0,0 @@
1
- export declare enum EPMSSyncStatus {
2
- New = "new",
3
- Queued = "queued",
4
- InProgress = "in_progress",
5
- Success = "success",
6
- Failure = "failure",
7
- RequireResume = "require_resume"
8
- }
@@ -1,10 +0,0 @@
1
- import { ECompanyProvider } from '../Company/ECompanyProvider.enum';
2
- import { EPMSSyncStatus } from './EPMSSyncStatus.enum';
3
- export interface IPMSSyncResponse {
4
- id: number;
5
- provider: ECompanyProvider;
6
- status: EPMSSyncStatus;
7
- syncData: string | null;
8
- syncType: string;
9
- additionalData?: any;
10
- }
@@ -1,2 +0,0 @@
1
- export * from './EPMSSyncStatus.enum';
2
- export * from './IPMSSyncResponse.type';
@@ -1,8 +0,0 @@
1
- export declare enum ERMSAuthSyncHistoryStatus {
2
- Success = "success",
3
- Failure = "failure",
4
- New = "new",
5
- Queued = "queued",
6
- InProgress = "in_progress",
7
- RequireResume = "require_resume"
8
- }
@@ -1,8 +0,0 @@
1
- import { ERMSAuthSyncHistoryStatus } from './ERMSAuthSyncHistoryStatus.type';
2
- export type IRMSSyncResponse = {
3
- id: number;
4
- status: ERMSAuthSyncHistoryStatus;
5
- additionalData: any;
6
- syncData: string | null;
7
- syncType: string;
8
- };
File without changes
@@ -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
- */