hububb-models 1.0.65 → 1.0.67
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/models/channex/booking.d.ts +3 -0
- package/dist/models/channex/booking.js +2 -0
- package/dist/models/channex/property.d.ts +3 -0
- package/dist/models/channex/property.js +2 -0
- package/dist/models/channex/thread.d.ts +3 -0
- package/dist/models/channex/thread.js +2 -0
- package/dist/schemas/apaleo/reservation.d.ts +15 -0
- package/dist/schemas/apaleo/reservation.js +3 -0
- package/dist/schemas/channex/booking.d.ts +510 -0
- package/dist/schemas/channex/booking.js +88 -0
- package/dist/schemas/channex/property.d.ts +544 -0
- package/dist/schemas/channex/property.js +94 -0
- package/dist/schemas/channex/thread.d.ts +239 -0
- package/dist/schemas/channex/thread.js +40 -0
- package/package.json +1 -1
@@ -74,10 +74,19 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
74
74
|
channelCode: import("zod").ZodString;
|
75
75
|
primaryGuest: import("zod").ZodObject<{
|
76
76
|
lastName: import("zod").ZodString;
|
77
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
78
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
79
|
+
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
77
80
|
}, "strip", import("zod").ZodTypeAny, {
|
78
81
|
lastName: string;
|
82
|
+
email?: string | undefined;
|
83
|
+
firstName?: string | undefined;
|
84
|
+
phone?: string | undefined;
|
79
85
|
}, {
|
80
86
|
lastName: string;
|
87
|
+
email?: string | undefined;
|
88
|
+
firstName?: string | undefined;
|
89
|
+
phone?: string | undefined;
|
81
90
|
}>;
|
82
91
|
guaranteeType: import("zod").ZodString;
|
83
92
|
cancellationFee: import("zod").ZodOptional<import("zod").ZodObject<{
|
@@ -279,6 +288,9 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
279
288
|
channelCode: string;
|
280
289
|
primaryGuest: {
|
281
290
|
lastName: string;
|
291
|
+
email?: string | undefined;
|
292
|
+
firstName?: string | undefined;
|
293
|
+
phone?: string | undefined;
|
282
294
|
};
|
283
295
|
guaranteeType: string;
|
284
296
|
balance: {
|
@@ -362,6 +374,9 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
362
374
|
channelCode: string;
|
363
375
|
primaryGuest: {
|
364
376
|
lastName: string;
|
377
|
+
email?: string | undefined;
|
378
|
+
firstName?: string | undefined;
|
379
|
+
phone?: string | undefined;
|
365
380
|
};
|
366
381
|
guaranteeType: string;
|
367
382
|
balance: {
|
@@ -49,6 +49,9 @@ const taxDetailSchema = (0, zod_1.object)({
|
|
49
49
|
});
|
50
50
|
const guestSchema = (0, zod_1.object)({
|
51
51
|
lastName: (0, zod_1.string)(),
|
52
|
+
firstName: (0, zod_1.string)().optional(),
|
53
|
+
email: (0, zod_1.string)().optional(),
|
54
|
+
phone: (0, zod_1.string)().optional(),
|
52
55
|
});
|
53
56
|
const payableAmountSchema = (0, zod_1.object)({
|
54
57
|
guest: amountSchema,
|
@@ -0,0 +1,510 @@
|
|
1
|
+
export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
2
|
+
id: import("zod").ZodString;
|
3
|
+
type: import("zod").ZodLiteral<"booking">;
|
4
|
+
attributes: import("zod").ZodObject<{
|
5
|
+
id: import("zod").ZodString;
|
6
|
+
meta: import("zod").ZodObject<{
|
7
|
+
listing_id: import("zod").ZodString;
|
8
|
+
thread_id: import("zod").ZodString;
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10
|
+
listing_id: string;
|
11
|
+
thread_id: string;
|
12
|
+
}, {
|
13
|
+
listing_id: string;
|
14
|
+
thread_id: string;
|
15
|
+
}>;
|
16
|
+
status: import("zod").ZodString;
|
17
|
+
services: import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">;
|
18
|
+
currency: import("zod").ZodString;
|
19
|
+
amount: import("zod").ZodString;
|
20
|
+
agent: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
21
|
+
inserted_at: import("zod").ZodString;
|
22
|
+
unique_id: import("zod").ZodString;
|
23
|
+
ota_name: import("zod").ZodString;
|
24
|
+
channel_id: import("zod").ZodString;
|
25
|
+
property_id: import("zod").ZodString;
|
26
|
+
booking_id: import("zod").ZodString;
|
27
|
+
arrival_date: import("zod").ZodString;
|
28
|
+
arrival_hour: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
29
|
+
customer: import("zod").ZodObject<{
|
30
|
+
name: import("zod").ZodString;
|
31
|
+
zip: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
32
|
+
address: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
33
|
+
country: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
34
|
+
city: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
35
|
+
language: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
36
|
+
mail: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
37
|
+
phone: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
38
|
+
surname: import("zod").ZodString;
|
39
|
+
}, "strip", import("zod").ZodTypeAny, {
|
40
|
+
name: string;
|
41
|
+
surname: string;
|
42
|
+
address?: string | null | undefined;
|
43
|
+
language?: string | null | undefined;
|
44
|
+
country?: string | null | undefined;
|
45
|
+
phone?: string | null | undefined;
|
46
|
+
city?: string | null | undefined;
|
47
|
+
zip?: string | null | undefined;
|
48
|
+
mail?: string | null | undefined;
|
49
|
+
}, {
|
50
|
+
name: string;
|
51
|
+
surname: string;
|
52
|
+
address?: string | null | undefined;
|
53
|
+
language?: string | null | undefined;
|
54
|
+
country?: string | null | undefined;
|
55
|
+
phone?: string | null | undefined;
|
56
|
+
city?: string | null | undefined;
|
57
|
+
zip?: string | null | undefined;
|
58
|
+
mail?: string | null | undefined;
|
59
|
+
}>;
|
60
|
+
departure_date: import("zod").ZodString;
|
61
|
+
deposits: import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">;
|
62
|
+
guarantee: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>>;
|
63
|
+
notes: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
64
|
+
payment_collect: import("zod").ZodString;
|
65
|
+
payment_type: import("zod").ZodString;
|
66
|
+
rooms: import("zod").ZodArray<import("zod").ZodObject<{
|
67
|
+
meta: import("zod").ZodObject<{
|
68
|
+
parent_rate_plan_id: import("zod").ZodString;
|
69
|
+
cancel_penalties: import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">;
|
70
|
+
days_breakdown: import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">;
|
71
|
+
}, "strip", import("zod").ZodTypeAny, {
|
72
|
+
parent_rate_plan_id: string;
|
73
|
+
cancel_penalties: {}[];
|
74
|
+
days_breakdown: {}[];
|
75
|
+
}, {
|
76
|
+
parent_rate_plan_id: string;
|
77
|
+
cancel_penalties: {}[];
|
78
|
+
days_breakdown: {}[];
|
79
|
+
}>;
|
80
|
+
taxes: import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">;
|
81
|
+
services: import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">;
|
82
|
+
amount: import("zod").ZodString;
|
83
|
+
days: import("zod").ZodObject<{
|
84
|
+
"2024-11-01": import("zod").ZodString;
|
85
|
+
}, "strip", import("zod").ZodTypeAny, {
|
86
|
+
"2024-11-01": string;
|
87
|
+
}, {
|
88
|
+
"2024-11-01": string;
|
89
|
+
}>;
|
90
|
+
rate_plan_id: import("zod").ZodString;
|
91
|
+
booking_room_id: import("zod").ZodString;
|
92
|
+
room_type_id: import("zod").ZodString;
|
93
|
+
guests: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>>;
|
94
|
+
occupancy: import("zod").ZodObject<{
|
95
|
+
children: import("zod").ZodNumber;
|
96
|
+
adults: import("zod").ZodNumber;
|
97
|
+
infants: import("zod").ZodNumber;
|
98
|
+
ages: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">]>>;
|
99
|
+
}, "strip", import("zod").ZodTypeAny, {
|
100
|
+
children: number;
|
101
|
+
adults: number;
|
102
|
+
infants: number;
|
103
|
+
ages?: {}[] | null | undefined;
|
104
|
+
}, {
|
105
|
+
children: number;
|
106
|
+
adults: number;
|
107
|
+
infants: number;
|
108
|
+
ages?: {}[] | null | undefined;
|
109
|
+
}>;
|
110
|
+
ota_commission: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodNumber]>>;
|
111
|
+
checkin_date: import("zod").ZodString;
|
112
|
+
checkout_date: import("zod").ZodString;
|
113
|
+
is_cancelled: import("zod").ZodBoolean;
|
114
|
+
ota_unique_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
115
|
+
}, "strip", import("zod").ZodTypeAny, {
|
116
|
+
meta: {
|
117
|
+
parent_rate_plan_id: string;
|
118
|
+
cancel_penalties: {}[];
|
119
|
+
days_breakdown: {}[];
|
120
|
+
};
|
121
|
+
days: {
|
122
|
+
"2024-11-01": string;
|
123
|
+
};
|
124
|
+
amount: string;
|
125
|
+
taxes: {}[];
|
126
|
+
services: {}[];
|
127
|
+
rate_plan_id: string;
|
128
|
+
booking_room_id: string;
|
129
|
+
room_type_id: string;
|
130
|
+
occupancy: {
|
131
|
+
children: number;
|
132
|
+
adults: number;
|
133
|
+
infants: number;
|
134
|
+
ages?: {}[] | null | undefined;
|
135
|
+
};
|
136
|
+
checkin_date: string;
|
137
|
+
checkout_date: string;
|
138
|
+
is_cancelled: boolean;
|
139
|
+
guests?: {} | null | undefined;
|
140
|
+
ota_commission?: number | null | undefined;
|
141
|
+
ota_unique_id?: string | null | undefined;
|
142
|
+
}, {
|
143
|
+
meta: {
|
144
|
+
parent_rate_plan_id: string;
|
145
|
+
cancel_penalties: {}[];
|
146
|
+
days_breakdown: {}[];
|
147
|
+
};
|
148
|
+
days: {
|
149
|
+
"2024-11-01": string;
|
150
|
+
};
|
151
|
+
amount: string;
|
152
|
+
taxes: {}[];
|
153
|
+
services: {}[];
|
154
|
+
rate_plan_id: string;
|
155
|
+
booking_room_id: string;
|
156
|
+
room_type_id: string;
|
157
|
+
occupancy: {
|
158
|
+
children: number;
|
159
|
+
adults: number;
|
160
|
+
infants: number;
|
161
|
+
ages?: {}[] | null | undefined;
|
162
|
+
};
|
163
|
+
checkin_date: string;
|
164
|
+
checkout_date: string;
|
165
|
+
is_cancelled: boolean;
|
166
|
+
guests?: {} | null | undefined;
|
167
|
+
ota_commission?: number | null | undefined;
|
168
|
+
ota_unique_id?: string | null | undefined;
|
169
|
+
}>, "many">;
|
170
|
+
secondary_ota: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
|
171
|
+
occupancy: import("zod").ZodObject<{
|
172
|
+
children: import("zod").ZodNumber;
|
173
|
+
adults: import("zod").ZodNumber;
|
174
|
+
infants: import("zod").ZodNumber;
|
175
|
+
ages: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">]>>;
|
176
|
+
}, "strip", import("zod").ZodTypeAny, {
|
177
|
+
children: number;
|
178
|
+
adults: number;
|
179
|
+
infants: number;
|
180
|
+
ages?: {}[] | null | undefined;
|
181
|
+
}, {
|
182
|
+
children: number;
|
183
|
+
adults: number;
|
184
|
+
infants: number;
|
185
|
+
ages?: {}[] | null | undefined;
|
186
|
+
}>;
|
187
|
+
acknowledge_status: import("zod").ZodString;
|
188
|
+
has_unacked_revisions: import("zod").ZodBoolean;
|
189
|
+
ota_commission: import("zod").ZodString;
|
190
|
+
ota_reservation_code: import("zod").ZodString;
|
191
|
+
raw_message: import("zod").ZodString;
|
192
|
+
revision_id: import("zod").ZodString;
|
193
|
+
}, "strip", import("zod").ZodTypeAny, {
|
194
|
+
id: string;
|
195
|
+
meta: {
|
196
|
+
listing_id: string;
|
197
|
+
thread_id: string;
|
198
|
+
};
|
199
|
+
status: string;
|
200
|
+
currency: string;
|
201
|
+
amount: string;
|
202
|
+
services: {}[];
|
203
|
+
occupancy: {
|
204
|
+
children: number;
|
205
|
+
adults: number;
|
206
|
+
infants: number;
|
207
|
+
ages?: {}[] | null | undefined;
|
208
|
+
};
|
209
|
+
ota_commission: string;
|
210
|
+
inserted_at: string;
|
211
|
+
unique_id: string;
|
212
|
+
ota_name: string;
|
213
|
+
channel_id: string;
|
214
|
+
property_id: string;
|
215
|
+
booking_id: string;
|
216
|
+
arrival_date: string;
|
217
|
+
customer: {
|
218
|
+
name: string;
|
219
|
+
surname: string;
|
220
|
+
address?: string | null | undefined;
|
221
|
+
language?: string | null | undefined;
|
222
|
+
country?: string | null | undefined;
|
223
|
+
phone?: string | null | undefined;
|
224
|
+
city?: string | null | undefined;
|
225
|
+
zip?: string | null | undefined;
|
226
|
+
mail?: string | null | undefined;
|
227
|
+
};
|
228
|
+
departure_date: string;
|
229
|
+
deposits: {}[];
|
230
|
+
payment_collect: string;
|
231
|
+
payment_type: string;
|
232
|
+
rooms: {
|
233
|
+
meta: {
|
234
|
+
parent_rate_plan_id: string;
|
235
|
+
cancel_penalties: {}[];
|
236
|
+
days_breakdown: {}[];
|
237
|
+
};
|
238
|
+
days: {
|
239
|
+
"2024-11-01": string;
|
240
|
+
};
|
241
|
+
amount: string;
|
242
|
+
taxes: {}[];
|
243
|
+
services: {}[];
|
244
|
+
rate_plan_id: string;
|
245
|
+
booking_room_id: string;
|
246
|
+
room_type_id: string;
|
247
|
+
occupancy: {
|
248
|
+
children: number;
|
249
|
+
adults: number;
|
250
|
+
infants: number;
|
251
|
+
ages?: {}[] | null | undefined;
|
252
|
+
};
|
253
|
+
checkin_date: string;
|
254
|
+
checkout_date: string;
|
255
|
+
is_cancelled: boolean;
|
256
|
+
guests?: {} | null | undefined;
|
257
|
+
ota_commission?: number | null | undefined;
|
258
|
+
ota_unique_id?: string | null | undefined;
|
259
|
+
}[];
|
260
|
+
acknowledge_status: string;
|
261
|
+
has_unacked_revisions: boolean;
|
262
|
+
ota_reservation_code: string;
|
263
|
+
raw_message: string;
|
264
|
+
revision_id: string;
|
265
|
+
agent?: string | null | undefined;
|
266
|
+
arrival_hour?: string | null | undefined;
|
267
|
+
guarantee?: {} | null | undefined;
|
268
|
+
notes?: string | null | undefined;
|
269
|
+
secondary_ota?: string | null | undefined;
|
270
|
+
}, {
|
271
|
+
id: string;
|
272
|
+
meta: {
|
273
|
+
listing_id: string;
|
274
|
+
thread_id: string;
|
275
|
+
};
|
276
|
+
status: string;
|
277
|
+
currency: string;
|
278
|
+
amount: string;
|
279
|
+
services: {}[];
|
280
|
+
occupancy: {
|
281
|
+
children: number;
|
282
|
+
adults: number;
|
283
|
+
infants: number;
|
284
|
+
ages?: {}[] | null | undefined;
|
285
|
+
};
|
286
|
+
ota_commission: string;
|
287
|
+
inserted_at: string;
|
288
|
+
unique_id: string;
|
289
|
+
ota_name: string;
|
290
|
+
channel_id: string;
|
291
|
+
property_id: string;
|
292
|
+
booking_id: string;
|
293
|
+
arrival_date: string;
|
294
|
+
customer: {
|
295
|
+
name: string;
|
296
|
+
surname: string;
|
297
|
+
address?: string | null | undefined;
|
298
|
+
language?: string | null | undefined;
|
299
|
+
country?: string | null | undefined;
|
300
|
+
phone?: string | null | undefined;
|
301
|
+
city?: string | null | undefined;
|
302
|
+
zip?: string | null | undefined;
|
303
|
+
mail?: string | null | undefined;
|
304
|
+
};
|
305
|
+
departure_date: string;
|
306
|
+
deposits: {}[];
|
307
|
+
payment_collect: string;
|
308
|
+
payment_type: string;
|
309
|
+
rooms: {
|
310
|
+
meta: {
|
311
|
+
parent_rate_plan_id: string;
|
312
|
+
cancel_penalties: {}[];
|
313
|
+
days_breakdown: {}[];
|
314
|
+
};
|
315
|
+
days: {
|
316
|
+
"2024-11-01": string;
|
317
|
+
};
|
318
|
+
amount: string;
|
319
|
+
taxes: {}[];
|
320
|
+
services: {}[];
|
321
|
+
rate_plan_id: string;
|
322
|
+
booking_room_id: string;
|
323
|
+
room_type_id: string;
|
324
|
+
occupancy: {
|
325
|
+
children: number;
|
326
|
+
adults: number;
|
327
|
+
infants: number;
|
328
|
+
ages?: {}[] | null | undefined;
|
329
|
+
};
|
330
|
+
checkin_date: string;
|
331
|
+
checkout_date: string;
|
332
|
+
is_cancelled: boolean;
|
333
|
+
guests?: {} | null | undefined;
|
334
|
+
ota_commission?: number | null | undefined;
|
335
|
+
ota_unique_id?: string | null | undefined;
|
336
|
+
}[];
|
337
|
+
acknowledge_status: string;
|
338
|
+
has_unacked_revisions: boolean;
|
339
|
+
ota_reservation_code: string;
|
340
|
+
raw_message: string;
|
341
|
+
revision_id: string;
|
342
|
+
agent?: string | null | undefined;
|
343
|
+
arrival_hour?: string | null | undefined;
|
344
|
+
guarantee?: {} | null | undefined;
|
345
|
+
notes?: string | null | undefined;
|
346
|
+
secondary_ota?: string | null | undefined;
|
347
|
+
}>;
|
348
|
+
}, "strip", import("zod").ZodTypeAny, {
|
349
|
+
type: "booking";
|
350
|
+
id: string;
|
351
|
+
attributes: {
|
352
|
+
id: string;
|
353
|
+
meta: {
|
354
|
+
listing_id: string;
|
355
|
+
thread_id: string;
|
356
|
+
};
|
357
|
+
status: string;
|
358
|
+
currency: string;
|
359
|
+
amount: string;
|
360
|
+
services: {}[];
|
361
|
+
occupancy: {
|
362
|
+
children: number;
|
363
|
+
adults: number;
|
364
|
+
infants: number;
|
365
|
+
ages?: {}[] | null | undefined;
|
366
|
+
};
|
367
|
+
ota_commission: string;
|
368
|
+
inserted_at: string;
|
369
|
+
unique_id: string;
|
370
|
+
ota_name: string;
|
371
|
+
channel_id: string;
|
372
|
+
property_id: string;
|
373
|
+
booking_id: string;
|
374
|
+
arrival_date: string;
|
375
|
+
customer: {
|
376
|
+
name: string;
|
377
|
+
surname: string;
|
378
|
+
address?: string | null | undefined;
|
379
|
+
language?: string | null | undefined;
|
380
|
+
country?: string | null | undefined;
|
381
|
+
phone?: string | null | undefined;
|
382
|
+
city?: string | null | undefined;
|
383
|
+
zip?: string | null | undefined;
|
384
|
+
mail?: string | null | undefined;
|
385
|
+
};
|
386
|
+
departure_date: string;
|
387
|
+
deposits: {}[];
|
388
|
+
payment_collect: string;
|
389
|
+
payment_type: string;
|
390
|
+
rooms: {
|
391
|
+
meta: {
|
392
|
+
parent_rate_plan_id: string;
|
393
|
+
cancel_penalties: {}[];
|
394
|
+
days_breakdown: {}[];
|
395
|
+
};
|
396
|
+
days: {
|
397
|
+
"2024-11-01": string;
|
398
|
+
};
|
399
|
+
amount: string;
|
400
|
+
taxes: {}[];
|
401
|
+
services: {}[];
|
402
|
+
rate_plan_id: string;
|
403
|
+
booking_room_id: string;
|
404
|
+
room_type_id: string;
|
405
|
+
occupancy: {
|
406
|
+
children: number;
|
407
|
+
adults: number;
|
408
|
+
infants: number;
|
409
|
+
ages?: {}[] | null | undefined;
|
410
|
+
};
|
411
|
+
checkin_date: string;
|
412
|
+
checkout_date: string;
|
413
|
+
is_cancelled: boolean;
|
414
|
+
guests?: {} | null | undefined;
|
415
|
+
ota_commission?: number | null | undefined;
|
416
|
+
ota_unique_id?: string | null | undefined;
|
417
|
+
}[];
|
418
|
+
acknowledge_status: string;
|
419
|
+
has_unacked_revisions: boolean;
|
420
|
+
ota_reservation_code: string;
|
421
|
+
raw_message: string;
|
422
|
+
revision_id: string;
|
423
|
+
agent?: string | null | undefined;
|
424
|
+
arrival_hour?: string | null | undefined;
|
425
|
+
guarantee?: {} | null | undefined;
|
426
|
+
notes?: string | null | undefined;
|
427
|
+
secondary_ota?: string | null | undefined;
|
428
|
+
};
|
429
|
+
}, {
|
430
|
+
type: "booking";
|
431
|
+
id: string;
|
432
|
+
attributes: {
|
433
|
+
id: string;
|
434
|
+
meta: {
|
435
|
+
listing_id: string;
|
436
|
+
thread_id: string;
|
437
|
+
};
|
438
|
+
status: string;
|
439
|
+
currency: string;
|
440
|
+
amount: string;
|
441
|
+
services: {}[];
|
442
|
+
occupancy: {
|
443
|
+
children: number;
|
444
|
+
adults: number;
|
445
|
+
infants: number;
|
446
|
+
ages?: {}[] | null | undefined;
|
447
|
+
};
|
448
|
+
ota_commission: string;
|
449
|
+
inserted_at: string;
|
450
|
+
unique_id: string;
|
451
|
+
ota_name: string;
|
452
|
+
channel_id: string;
|
453
|
+
property_id: string;
|
454
|
+
booking_id: string;
|
455
|
+
arrival_date: string;
|
456
|
+
customer: {
|
457
|
+
name: string;
|
458
|
+
surname: string;
|
459
|
+
address?: string | null | undefined;
|
460
|
+
language?: string | null | undefined;
|
461
|
+
country?: string | null | undefined;
|
462
|
+
phone?: string | null | undefined;
|
463
|
+
city?: string | null | undefined;
|
464
|
+
zip?: string | null | undefined;
|
465
|
+
mail?: string | null | undefined;
|
466
|
+
};
|
467
|
+
departure_date: string;
|
468
|
+
deposits: {}[];
|
469
|
+
payment_collect: string;
|
470
|
+
payment_type: string;
|
471
|
+
rooms: {
|
472
|
+
meta: {
|
473
|
+
parent_rate_plan_id: string;
|
474
|
+
cancel_penalties: {}[];
|
475
|
+
days_breakdown: {}[];
|
476
|
+
};
|
477
|
+
days: {
|
478
|
+
"2024-11-01": string;
|
479
|
+
};
|
480
|
+
amount: string;
|
481
|
+
taxes: {}[];
|
482
|
+
services: {}[];
|
483
|
+
rate_plan_id: string;
|
484
|
+
booking_room_id: string;
|
485
|
+
room_type_id: string;
|
486
|
+
occupancy: {
|
487
|
+
children: number;
|
488
|
+
adults: number;
|
489
|
+
infants: number;
|
490
|
+
ages?: {}[] | null | undefined;
|
491
|
+
};
|
492
|
+
checkin_date: string;
|
493
|
+
checkout_date: string;
|
494
|
+
is_cancelled: boolean;
|
495
|
+
guests?: {} | null | undefined;
|
496
|
+
ota_commission?: number | null | undefined;
|
497
|
+
ota_unique_id?: string | null | undefined;
|
498
|
+
}[];
|
499
|
+
acknowledge_status: string;
|
500
|
+
has_unacked_revisions: boolean;
|
501
|
+
ota_reservation_code: string;
|
502
|
+
raw_message: string;
|
503
|
+
revision_id: string;
|
504
|
+
agent?: string | null | undefined;
|
505
|
+
arrival_hour?: string | null | undefined;
|
506
|
+
guarantee?: {} | null | undefined;
|
507
|
+
notes?: string | null | undefined;
|
508
|
+
secondary_ota?: string | null | undefined;
|
509
|
+
};
|
510
|
+
}>;
|
@@ -0,0 +1,88 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ChannexBookingSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const CustomerSchema = (0, zod_1.object)({
|
6
|
+
name: (0, zod_1.string)(),
|
7
|
+
zip: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
8
|
+
address: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
9
|
+
country: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
10
|
+
city: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
11
|
+
language: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
12
|
+
mail: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
13
|
+
phone: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
14
|
+
surname: (0, zod_1.string)(),
|
15
|
+
});
|
16
|
+
const RoomSchema = (0, zod_1.object)({
|
17
|
+
meta: (0, zod_1.object)({
|
18
|
+
parent_rate_plan_id: (0, zod_1.string)(),
|
19
|
+
cancel_penalties: (0, zod_1.array)((0, zod_1.object)({})),
|
20
|
+
days_breakdown: (0, zod_1.array)((0, zod_1.object)({})),
|
21
|
+
}),
|
22
|
+
taxes: (0, zod_1.array)((0, zod_1.object)({})),
|
23
|
+
services: (0, zod_1.array)((0, zod_1.object)({})),
|
24
|
+
amount: (0, zod_1.string)(),
|
25
|
+
days: (0, zod_1.object)({
|
26
|
+
"2024-11-01": (0, zod_1.string)(),
|
27
|
+
}),
|
28
|
+
rate_plan_id: (0, zod_1.string)(),
|
29
|
+
booking_room_id: (0, zod_1.string)(),
|
30
|
+
room_type_id: (0, zod_1.string)(),
|
31
|
+
guests: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.object)({}))),
|
32
|
+
occupancy: (0, zod_1.object)({
|
33
|
+
children: (0, zod_1.number)(),
|
34
|
+
adults: (0, zod_1.number)(),
|
35
|
+
infants: (0, zod_1.number)(),
|
36
|
+
ages: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.array)((0, zod_1.object)({})))),
|
37
|
+
}),
|
38
|
+
ota_commission: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.number)())),
|
39
|
+
checkin_date: (0, zod_1.string)(),
|
40
|
+
checkout_date: (0, zod_1.string)(),
|
41
|
+
is_cancelled: (0, zod_1.boolean)(),
|
42
|
+
ota_unique_id: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
43
|
+
});
|
44
|
+
exports.ChannexBookingSchema = (0, zod_1.object)({
|
45
|
+
id: (0, zod_1.string)(),
|
46
|
+
type: (0, zod_1.literal)("booking"),
|
47
|
+
attributes: (0, zod_1.object)({
|
48
|
+
id: (0, zod_1.string)(),
|
49
|
+
meta: (0, zod_1.object)({
|
50
|
+
listing_id: (0, zod_1.string)(),
|
51
|
+
thread_id: (0, zod_1.string)(),
|
52
|
+
}),
|
53
|
+
status: (0, zod_1.string)(),
|
54
|
+
services: (0, zod_1.array)((0, zod_1.object)({})),
|
55
|
+
currency: (0, zod_1.string)(),
|
56
|
+
amount: (0, zod_1.string)(),
|
57
|
+
agent: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
58
|
+
inserted_at: (0, zod_1.string)(),
|
59
|
+
unique_id: (0, zod_1.string)(),
|
60
|
+
ota_name: (0, zod_1.string)(),
|
61
|
+
channel_id: (0, zod_1.string)(),
|
62
|
+
property_id: (0, zod_1.string)(),
|
63
|
+
booking_id: (0, zod_1.string)(),
|
64
|
+
arrival_date: (0, zod_1.string)(),
|
65
|
+
arrival_hour: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
66
|
+
customer: CustomerSchema,
|
67
|
+
departure_date: (0, zod_1.string)(),
|
68
|
+
deposits: (0, zod_1.array)((0, zod_1.object)({})),
|
69
|
+
guarantee: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.object)({}))),
|
70
|
+
notes: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
71
|
+
payment_collect: (0, zod_1.string)(),
|
72
|
+
payment_type: (0, zod_1.string)(),
|
73
|
+
rooms: (0, zod_1.array)(RoomSchema),
|
74
|
+
secondary_ota: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.string)())),
|
75
|
+
occupancy: (0, zod_1.object)({
|
76
|
+
children: (0, zod_1.number)(),
|
77
|
+
adults: (0, zod_1.number)(),
|
78
|
+
infants: (0, zod_1.number)(),
|
79
|
+
ages: (0, zod_1.optional)((0, zod_1.null)().or((0, zod_1.array)((0, zod_1.object)({})))),
|
80
|
+
}),
|
81
|
+
acknowledge_status: (0, zod_1.string)(),
|
82
|
+
has_unacked_revisions: (0, zod_1.boolean)(),
|
83
|
+
ota_commission: (0, zod_1.string)(),
|
84
|
+
ota_reservation_code: (0, zod_1.string)(),
|
85
|
+
raw_message: (0, zod_1.string)(),
|
86
|
+
revision_id: (0, zod_1.string)(),
|
87
|
+
}),
|
88
|
+
});
|