@hyper.software/visitor-integrations-client 1.2.38 → 1.2.39

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.
@@ -14,15 +14,8 @@ export interface IAcceptRejectBooking {
14
14
  channelType?: ChannelManagerType;
15
15
  revisionId?: string;
16
16
  }
17
- export declare enum EXTERNAL_BOOKING_STATUS {
18
- CREATED = "CREATED",
19
- NEW = "NEW",
20
- MODIFIED = "MODIFIED",
21
- CANCELED = "CANCELED",
22
- CANCELLED = "CANCELLED"
23
- }
24
17
  export interface IExternalBooking {
25
- status?: EXTERNAL_BOOKING_STATUS | null;
18
+ status?: 'CREATED' | 'CANCELED';
26
19
  companyId: string;
27
20
  code: string;
28
21
  roomTypeId: string;
@@ -43,44 +36,22 @@ export interface IExternalBooking {
43
36
  numberOfRooms?: number;
44
37
  isFetched?: boolean;
45
38
  bookingSource: BOOKING_SOURCE;
46
- channelType?: ChannelManagerType;
47
- extra: IBookingExtra;
48
- isSynced?: boolean;
49
- }
50
- export interface IBookingExtra {
51
- isPaid?: boolean;
52
- otaComission?: number;
53
- arrivalTime?: string;
54
- details?: string;
55
- otaBookingId?: string;
56
- childrenAges?: Array<{
57
- age: number | null | undefined;
58
- }>;
59
- paymentMethod?: PAYMENT_METHOD;
60
- currency?: string;
61
- excludedFees?: number;
62
- breakfastType?: ROOM_TYPE_BREAKFAST_INFORMATION_TYPE;
63
- breakfastIncluded?: boolean;
64
- breakfastCost?: number;
65
- revisionId?: string;
66
- insertedAt?: string;
67
- isModification?: boolean;
68
- originalBookingId?: string;
69
- dailyRates?: Array<{
70
- date: string;
71
- rate: number;
72
- currency: string;
73
- }>;
74
- mealPlan?: string;
75
- policies?: {
76
- cancellation?: string;
77
- guarantee?: string;
78
- };
79
- guarantee?: {
80
- cardNumber?: string;
81
- cardType?: string;
82
- cardholderName?: string;
83
- expirationDate?: string;
84
- isVirtual?: boolean;
39
+ extra: {
40
+ details?: string;
41
+ isPaid?: boolean;
42
+ otaComission?: number;
43
+ otaBookingId?: string;
44
+ arrivalTime?: string;
45
+ breakfastType?: ROOM_TYPE_BREAKFAST_INFORMATION_TYPE;
46
+ breakfastIncluded?: boolean;
47
+ breakfastCost?: number;
48
+ excludedFees?: number;
49
+ childrenAges?: Array<{
50
+ age: number | null | undefined;
51
+ }>;
52
+ paymentMethod?: PAYMENT_METHOD;
53
+ currency?: string;
54
+ revisionId?: string;
85
55
  };
56
+ isSynced?: boolean;
86
57
  }
@@ -1,12 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EXTERNAL_BOOKING_STATUS = void 0;
4
- var EXTERNAL_BOOKING_STATUS;
5
- (function (EXTERNAL_BOOKING_STATUS) {
6
- EXTERNAL_BOOKING_STATUS["CREATED"] = "CREATED";
7
- EXTERNAL_BOOKING_STATUS["NEW"] = "NEW";
8
- EXTERNAL_BOOKING_STATUS["MODIFIED"] = "MODIFIED";
9
- EXTERNAL_BOOKING_STATUS["CANCELED"] = "CANCELED";
10
- EXTERNAL_BOOKING_STATUS["CANCELLED"] = "CANCELLED"; // This is for channex
11
- })(EXTERNAL_BOOKING_STATUS || (exports.EXTERNAL_BOOKING_STATUS = EXTERNAL_BOOKING_STATUS = {}));
12
3
  //# sourceMappingURL=bookings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bookings.js","sourceRoot":"","sources":["../../../../src/interfaces/bookings.ts"],"names":[],"mappings":";;;AAoBA,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,sCAAW,CAAA;IACX,gDAAqB,CAAA;IACrB,gDAAqB,CAAA;IACrB,kDAAuB,CAAA,CAAC,sBAAsB;AAChD,CAAC,EANW,uBAAuB,uCAAvB,uBAAuB,QAMlC"}
1
+ {"version":3,"file":"bookings.js","sourceRoot":"","sources":["../../../../src/interfaces/bookings.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyper.software/visitor-integrations-client",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
4
4
  "main": "./lib/client/src/index.js",
5
5
  "types": "./lib/client/src/index.d.ts",
6
6
  "author": "Raul Tomescu <tomescu.raul+hyper@gmail.com>",