@hyper.software/visitor-integrations-client 1.2.37 → 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.
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +0 -0
- package/lib/client/src/config.d.ts +0 -0
- package/lib/client/src/config.js +0 -0
- package/lib/client/src/config.js.map +0 -0
- package/lib/client/src/index.d.ts +0 -0
- package/lib/client/src/index.js +0 -0
- package/lib/client/src/index.js.map +0 -0
- package/lib/client/src/interfaces.d.ts +0 -0
- package/lib/client/src/interfaces.js +0 -0
- package/lib/client/src/interfaces.js.map +0 -0
- package/lib/client/src/service.d.ts +0 -0
- package/lib/client/src/service.js +0 -0
- package/lib/client/src/service.js.map +0 -0
- package/lib/src/interfaces/bookings.d.ts +10 -0
- package/lib/src/interfaces/bookings.js +0 -0
- package/lib/src/interfaces/bookings.js.map +0 -0
- package/lib/src/interfaces/channels.d.ts +12 -0
- package/lib/src/interfaces/channels.js +0 -0
- package/lib/src/interfaces/channels.js.map +0 -0
- package/lib/src/interfaces/index.d.ts +9 -3
- package/lib/src/interfaces/index.js +0 -0
- package/lib/src/interfaces/index.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +0 -0
- package/src/index.ts +0 -0
- package/src/interfaces.ts +0 -0
- package/src/mocks/index.ts +0 -0
- package/src/service.ts +0 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/.yarnrc.yml
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/client/src/config.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/client/src/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PAYMENT_METHOD, ROOM_TYPE_BREAKFAST_INFORMATION_TYPE } from '@hyper.software/common-models/lib/interfaces';
|
|
2
2
|
import { BOOKING_SOURCE } from '@hyper.software/visitor-main-api-client';
|
|
3
|
+
import { ChannelManagerType } from '.';
|
|
3
4
|
export interface IInboundBooking {
|
|
4
5
|
data: {
|
|
5
6
|
account_id: string;
|
|
@@ -10,6 +11,8 @@ export interface IInboundBooking {
|
|
|
10
11
|
export interface IAcceptRejectBooking {
|
|
11
12
|
channelId?: string;
|
|
12
13
|
code?: string;
|
|
14
|
+
channelType?: ChannelManagerType;
|
|
15
|
+
revisionId?: string;
|
|
13
16
|
}
|
|
14
17
|
export interface IExternalBooking {
|
|
15
18
|
status?: 'CREATED' | 'CANCELED';
|
|
@@ -23,6 +26,11 @@ export interface IExternalBooking {
|
|
|
23
26
|
lastName: string;
|
|
24
27
|
email: string;
|
|
25
28
|
phoneNumber?: string;
|
|
29
|
+
address?: string;
|
|
30
|
+
city?: string;
|
|
31
|
+
country?: string;
|
|
32
|
+
postalCode?: string;
|
|
33
|
+
companyName?: string;
|
|
26
34
|
numberOfAdults?: number;
|
|
27
35
|
numberOfChildren?: number;
|
|
28
36
|
numberOfRooms?: number;
|
|
@@ -42,6 +50,8 @@ export interface IExternalBooking {
|
|
|
42
50
|
age: number | null | undefined;
|
|
43
51
|
}>;
|
|
44
52
|
paymentMethod?: PAYMENT_METHOD;
|
|
53
|
+
currency?: string;
|
|
54
|
+
revisionId?: string;
|
|
45
55
|
};
|
|
46
56
|
isSynced?: boolean;
|
|
47
57
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -13,3 +13,15 @@ export interface ISyncChannelData {
|
|
|
13
13
|
otaPlanId: string;
|
|
14
14
|
}[];
|
|
15
15
|
}
|
|
16
|
+
export interface ITestConnection {
|
|
17
|
+
channel: string;
|
|
18
|
+
settings: {
|
|
19
|
+
hotel_id: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface IGetMappingDetails {
|
|
23
|
+
channel: string;
|
|
24
|
+
settings: {
|
|
25
|
+
hotel_id: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -50,7 +50,7 @@ export interface ICompany extends ITimestamps {
|
|
|
50
50
|
currency?: CURRENCY;
|
|
51
51
|
email?: string;
|
|
52
52
|
integrations?: {
|
|
53
|
-
channelManagerType?:
|
|
53
|
+
channelManagerType?: ChannelManagerType;
|
|
54
54
|
bnovo?: {
|
|
55
55
|
id?: string;
|
|
56
56
|
isEnabled?: boolean;
|
|
@@ -76,7 +76,7 @@ export interface IRoomType extends ITimestamps {
|
|
|
76
76
|
integrations?: IRoomTypeIntegrations;
|
|
77
77
|
}
|
|
78
78
|
export interface IRoomTypeIntegrations {
|
|
79
|
-
channelManagerType?:
|
|
79
|
+
channelManagerType?: ChannelManagerType;
|
|
80
80
|
bnovo?: {
|
|
81
81
|
id?: string;
|
|
82
82
|
isEnabled?: boolean;
|
|
@@ -103,7 +103,7 @@ export type IUpdatePricingPayload = {
|
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
integrations?: {
|
|
106
|
-
channelManagerType?:
|
|
106
|
+
channelManagerType?: ChannelManagerType;
|
|
107
107
|
channex?: {
|
|
108
108
|
id?: string;
|
|
109
109
|
};
|
|
@@ -148,15 +148,21 @@ export interface IFile {
|
|
|
148
148
|
type?: string;
|
|
149
149
|
name?: string;
|
|
150
150
|
}
|
|
151
|
+
export type ChannelManagerType = 'BNOVO' | 'CHANNEX';
|
|
151
152
|
export interface IChannel {
|
|
152
153
|
id?: string;
|
|
153
154
|
type?: CHANNEL_TYPE;
|
|
154
155
|
credentials?: any;
|
|
155
156
|
integrations?: {
|
|
157
|
+
channelManagerType?: ChannelManagerType;
|
|
156
158
|
bnovo?: {
|
|
157
159
|
id?: string;
|
|
158
160
|
isEnabled?: boolean;
|
|
159
161
|
};
|
|
162
|
+
channex?: {
|
|
163
|
+
id?: string;
|
|
164
|
+
isEnabled?: boolean;
|
|
165
|
+
};
|
|
160
166
|
};
|
|
161
167
|
}
|
|
162
168
|
export interface IInboundMappedChannel extends IChannel {
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,2EAAkF;AAAzE,sGAAA,QAAQ,OAAA;AAAE,sGAAA,QAAQ,OAAA;AAuJ3B,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,2EAAkF;AAAzE,sGAAA,QAAQ,OAAA;AAAE,sGAAA,QAAQ,OAAA;AAuJ3B,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAsFD,6CAA2B;AAC3B,6CAA2B;AAC3B,+EAA6D"}
|
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
File without changes
|
package/src/index.ts
CHANGED
|
File without changes
|
package/src/interfaces.ts
CHANGED
|
File without changes
|
package/src/mocks/index.ts
CHANGED
|
File without changes
|
package/src/service.ts
CHANGED
|
File without changes
|