hububb-saas-shared 1.0.9 → 1.0.11

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.
@@ -99,6 +99,7 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
99
99
  payment_collect: import("zod").ZodNullable<import("zod").ZodString>;
100
100
  payment_type: import("zod").ZodNullable<import("zod").ZodString>;
101
101
  property_id: import("zod").ZodString;
102
+ channel_id: import("zod").ZodString;
102
103
  revision_id: import("zod").ZodString;
103
104
  rooms: import("zod").ZodArray<import("zod").ZodObject<{
104
105
  amount: import("zod").ZodString;
@@ -445,6 +446,7 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
445
446
  payment_collect: string | null;
446
447
  payment_type: string | null;
447
448
  property_id: string;
449
+ channel_id: string;
448
450
  revision_id: string;
449
451
  rooms: {
450
452
  meta: {
@@ -549,6 +551,7 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
549
551
  payment_collect: string | null;
550
552
  payment_type: string | null;
551
553
  property_id: string;
554
+ channel_id: string;
552
555
  revision_id: string;
553
556
  rooms: {
554
557
  meta: {
@@ -657,6 +660,7 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
657
660
  payment_collect: string | null;
658
661
  payment_type: string | null;
659
662
  property_id: string;
663
+ channel_id: string;
660
664
  revision_id: string;
661
665
  rooms: {
662
666
  meta: {
@@ -765,6 +769,7 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
765
769
  payment_collect: string | null;
766
770
  payment_type: string | null;
767
771
  property_id: string;
772
+ channel_id: string;
768
773
  revision_id: string;
769
774
  rooms: {
770
775
  meta: {
@@ -875,6 +880,7 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
875
880
  payment_collect: string | null;
876
881
  payment_type: string | null;
877
882
  property_id: string;
883
+ channel_id: string;
878
884
  revision_id: string;
879
885
  rooms: {
880
886
  meta: {
@@ -985,6 +991,7 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
985
991
  payment_collect: string | null;
986
992
  payment_type: string | null;
987
993
  property_id: string;
994
+ channel_id: string;
988
995
  revision_id: string;
989
996
  rooms: {
990
997
  meta: {
@@ -1047,1058 +1054,35 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
1047
1054
  };
1048
1055
  };
1049
1056
  }>;
1057
+ export declare const WebhookChannexBookingPayloadSchema: import("zod").ZodObject<{
1058
+ booking_id: import("zod").ZodString;
1059
+ property_id: import("zod").ZodString;
1060
+ revision_id: import("zod").ZodString;
1061
+ }, "strip", import("zod").ZodTypeAny, {
1062
+ property_id: string;
1063
+ revision_id: string;
1064
+ booking_id: string;
1065
+ }, {
1066
+ property_id: string;
1067
+ revision_id: string;
1068
+ booking_id: string;
1069
+ }>;
1050
1070
  export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
1051
1071
  timestamp: import("zod").ZodString;
1052
1072
  event: import("zod").ZodString;
1053
1073
  user_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNull, import("zod").ZodString]>>;
1054
1074
  payload: import("zod").ZodObject<{
1055
- data: import("zod").ZodObject<{
1056
- id: import("zod").ZodString;
1057
- type: import("zod").ZodString;
1058
- attributes: import("zod").ZodObject<{
1059
- amount: import("zod").ZodString;
1060
- ota_commission: import("zod").ZodNullable<import("zod").ZodString>;
1061
- arrival_date: import("zod").ZodString;
1062
- arrival_hour: import("zod").ZodNullable<import("zod").ZodString>;
1063
- currency: import("zod").ZodString;
1064
- customer: import("zod").ZodObject<{
1065
- address: import("zod").ZodNullable<import("zod").ZodString>;
1066
- city: import("zod").ZodNullable<import("zod").ZodString>;
1067
- company: import("zod").ZodNullable<import("zod").ZodString>;
1068
- country: import("zod").ZodNullable<import("zod").ZodString>;
1069
- language: import("zod").ZodNullable<import("zod").ZodString>;
1070
- mail: import("zod").ZodString;
1071
- meta: import("zod").ZodOptional<import("zod").ZodObject<{
1072
- is_genius: import("zod").ZodOptional<import("zod").ZodBoolean>;
1073
- }, "strip", import("zod").ZodTypeAny, {
1074
- is_genius?: boolean | undefined;
1075
- }, {
1076
- is_genius?: boolean | undefined;
1077
- }>>;
1078
- name: import("zod").ZodString;
1079
- phone: import("zod").ZodNullable<import("zod").ZodString>;
1080
- surname: import("zod").ZodString;
1081
- zip: import("zod").ZodNullable<import("zod").ZodString>;
1082
- }, "strip", import("zod").ZodTypeAny, {
1083
- name: string;
1084
- address: string | null;
1085
- country: string | null;
1086
- language: string | null;
1087
- phone: string | null;
1088
- city: string | null;
1089
- company: string | null;
1090
- mail: string;
1091
- surname: string;
1092
- zip: string | null;
1093
- meta?: {
1094
- is_genius?: boolean | undefined;
1095
- } | undefined;
1096
- }, {
1097
- name: string;
1098
- address: string | null;
1099
- country: string | null;
1100
- language: string | null;
1101
- phone: string | null;
1102
- city: string | null;
1103
- company: string | null;
1104
- mail: string;
1105
- surname: string;
1106
- zip: string | null;
1107
- meta?: {
1108
- is_genius?: boolean | undefined;
1109
- } | undefined;
1110
- }>;
1111
- departure_date: import("zod").ZodString;
1112
- guarantee: import("zod").ZodNullable<import("zod").ZodObject<{
1113
- card_number: import("zod").ZodString;
1114
- card_type: import("zod").ZodString;
1115
- cardholder_name: import("zod").ZodString;
1116
- cvv: import("zod").ZodString;
1117
- expiration_date: import("zod").ZodString;
1118
- is_virtual: import("zod").ZodBoolean;
1119
- }, "strip", import("zod").ZodTypeAny, {
1120
- card_number: string;
1121
- card_type: string;
1122
- cardholder_name: string;
1123
- cvv: string;
1124
- expiration_date: string;
1125
- is_virtual: boolean;
1126
- }, {
1127
- card_number: string;
1128
- card_type: string;
1129
- cardholder_name: string;
1130
- cvv: string;
1131
- expiration_date: string;
1132
- is_virtual: boolean;
1133
- }>>;
1134
- id: import("zod").ZodString;
1135
- inserted_at: import("zod").ZodString;
1136
- notes: import("zod").ZodNullable<import("zod").ZodString>;
1137
- occupancy: import("zod").ZodObject<{
1138
- adults: import("zod").ZodNumber;
1139
- children: import("zod").ZodNumber;
1140
- infants: import("zod").ZodNumber;
1141
- }, "strip", import("zod").ZodTypeAny, {
1142
- children: number;
1143
- adults: number;
1144
- infants: number;
1145
- }, {
1146
- children: number;
1147
- adults: number;
1148
- infants: number;
1149
- }>;
1150
- ota_name: import("zod").ZodString;
1151
- ota_reservation_code: import("zod").ZodString;
1152
- payment_collect: import("zod").ZodNullable<import("zod").ZodString>;
1153
- payment_type: import("zod").ZodNullable<import("zod").ZodString>;
1154
- property_id: import("zod").ZodString;
1155
- revision_id: import("zod").ZodString;
1156
- rooms: import("zod").ZodArray<import("zod").ZodObject<{
1157
- amount: import("zod").ZodString;
1158
- booking_room_id: import("zod").ZodString;
1159
- checkin_date: import("zod").ZodString;
1160
- checkout_date: import("zod").ZodString;
1161
- days: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1162
- guests: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1163
- name: import("zod").ZodString;
1164
- surname: import("zod").ZodString;
1165
- }, "strip", import("zod").ZodTypeAny, {
1166
- name: string;
1167
- surname: string;
1168
- }, {
1169
- name: string;
1170
- surname: string;
1171
- }>, "many">>;
1172
- meta: import("zod").ZodNullable<import("zod").ZodObject<{
1173
- additional_details: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
1174
- cancel_penalties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1175
- amount: import("zod").ZodString;
1176
- currency: import("zod").ZodString;
1177
- from: import("zod").ZodString;
1178
- }, "strip", import("zod").ZodTypeAny, {
1179
- currency: string;
1180
- amount: string;
1181
- from: string;
1182
- }, {
1183
- currency: string;
1184
- amount: string;
1185
- from: string;
1186
- }>, "many">>;
1187
- days_breakdown: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodOptional<import("zod").ZodObject<{
1188
- amount: import("zod").ZodString;
1189
- date: import("zod").ZodString;
1190
- promotion: import("zod").ZodNullable<import("zod").ZodObject<{
1191
- id: import("zod").ZodString;
1192
- title: import("zod").ZodString;
1193
- }, "strip", import("zod").ZodTypeAny, {
1194
- id: string;
1195
- title: string;
1196
- }, {
1197
- id: string;
1198
- title: string;
1199
- }>>;
1200
- rate_code: import("zod").ZodNumber;
1201
- rate_plan: import("zod").ZodString;
1202
- }, "strip", import("zod").ZodTypeAny, {
1203
- date: string;
1204
- amount: string;
1205
- promotion: {
1206
- id: string;
1207
- title: string;
1208
- } | null;
1209
- rate_code: number;
1210
- rate_plan: string;
1211
- }, {
1212
- date: string;
1213
- amount: string;
1214
- promotion: {
1215
- id: string;
1216
- title: string;
1217
- } | null;
1218
- rate_code: number;
1219
- rate_plan: string;
1220
- }>>, "many">>;
1221
- meal_plan: import("zod").ZodNullable<import("zod").ZodString>;
1222
- policies: import("zod").ZodNullable<import("zod").ZodString>;
1223
- promotion: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1224
- from_code: import("zod").ZodString;
1225
- from_name: import("zod").ZodString;
1226
- promotion_id: import("zod").ZodString;
1227
- to_code: import("zod").ZodString;
1228
- }, "strip", import("zod").ZodTypeAny, {
1229
- from_code: string;
1230
- from_name: string;
1231
- promotion_id: string;
1232
- to_code: string;
1233
- }, {
1234
- from_code: string;
1235
- from_name: string;
1236
- promotion_id: string;
1237
- to_code: string;
1238
- }>, "many">>;
1239
- room_type_code: import("zod").ZodNullable<import("zod").ZodString>;
1240
- smoking_preferences: import("zod").ZodNullable<import("zod").ZodString>;
1241
- }, "strip", import("zod").ZodTypeAny, {
1242
- meal_plan: string | null;
1243
- policies: string | null;
1244
- room_type_code: string | null;
1245
- smoking_preferences: string | null;
1246
- promotion?: {
1247
- from_code: string;
1248
- from_name: string;
1249
- promotion_id: string;
1250
- to_code: string;
1251
- }[] | undefined;
1252
- additional_details?: any[] | undefined;
1253
- cancel_penalties?: {
1254
- currency: string;
1255
- amount: string;
1256
- from: string;
1257
- }[] | undefined;
1258
- days_breakdown?: ({
1259
- date: string;
1260
- amount: string;
1261
- promotion: {
1262
- id: string;
1263
- title: string;
1264
- } | null;
1265
- rate_code: number;
1266
- rate_plan: string;
1267
- } | undefined)[] | undefined;
1268
- }, {
1269
- meal_plan: string | null;
1270
- policies: string | null;
1271
- room_type_code: string | null;
1272
- smoking_preferences: string | null;
1273
- promotion?: {
1274
- from_code: string;
1275
- from_name: string;
1276
- promotion_id: string;
1277
- to_code: string;
1278
- }[] | undefined;
1279
- additional_details?: any[] | undefined;
1280
- cancel_penalties?: {
1281
- currency: string;
1282
- amount: string;
1283
- from: string;
1284
- }[] | undefined;
1285
- days_breakdown?: ({
1286
- date: string;
1287
- amount: string;
1288
- promotion: {
1289
- id: string;
1290
- title: string;
1291
- } | null;
1292
- rate_code: number;
1293
- rate_plan: string;
1294
- } | undefined)[] | undefined;
1295
- }>>;
1296
- occupancy: import("zod").ZodObject<{
1297
- adults: import("zod").ZodNumber;
1298
- children: import("zod").ZodNumber;
1299
- infants: import("zod").ZodNumber;
1300
- }, "strip", import("zod").ZodTypeAny, {
1301
- children: number;
1302
- adults: number;
1303
- infants: number;
1304
- }, {
1305
- children: number;
1306
- adults: number;
1307
- infants: number;
1308
- }>;
1309
- rate_plan_id: import("zod").ZodString;
1310
- room_type_id: import("zod").ZodString;
1311
- services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
1312
- taxes: import("zod").ZodArray<import("zod").ZodObject<{
1313
- is_inclusive: import("zod").ZodBoolean;
1314
- name: import("zod").ZodString;
1315
- nights: import("zod").ZodNumber;
1316
- persons: import("zod").ZodNumber;
1317
- price_mode: import("zod").ZodString;
1318
- price_per_unit: import("zod").ZodString;
1319
- total_price: import("zod").ZodString;
1320
- type: import("zod").ZodString;
1321
- }, "strip", import("zod").ZodTypeAny, {
1322
- name: string;
1323
- type: string;
1324
- is_inclusive: boolean;
1325
- nights: number;
1326
- persons: number;
1327
- price_mode: string;
1328
- price_per_unit: string;
1329
- total_price: string;
1330
- }, {
1331
- name: string;
1332
- type: string;
1333
- is_inclusive: boolean;
1334
- nights: number;
1335
- persons: number;
1336
- price_mode: string;
1337
- price_per_unit: string;
1338
- total_price: string;
1339
- }>, "many">;
1340
- }, "strip", import("zod").ZodTypeAny, {
1341
- meta: {
1342
- meal_plan: string | null;
1343
- policies: string | null;
1344
- room_type_code: string | null;
1345
- smoking_preferences: string | null;
1346
- promotion?: {
1347
- from_code: string;
1348
- from_name: string;
1349
- promotion_id: string;
1350
- to_code: string;
1351
- }[] | undefined;
1352
- additional_details?: any[] | undefined;
1353
- cancel_penalties?: {
1354
- currency: string;
1355
- amount: string;
1356
- from: string;
1357
- }[] | undefined;
1358
- days_breakdown?: ({
1359
- date: string;
1360
- amount: string;
1361
- promotion: {
1362
- id: string;
1363
- title: string;
1364
- } | null;
1365
- rate_code: number;
1366
- rate_plan: string;
1367
- } | undefined)[] | undefined;
1368
- } | null;
1369
- days: Record<string, string>;
1370
- occupancy: {
1371
- children: number;
1372
- adults: number;
1373
- infants: number;
1374
- };
1375
- amount: string;
1376
- booking_room_id: string;
1377
- checkin_date: string;
1378
- checkout_date: string;
1379
- guests: {
1380
- name: string;
1381
- surname: string;
1382
- }[] | null;
1383
- rate_plan_id: string;
1384
- room_type_id: string;
1385
- taxes: {
1386
- name: string;
1387
- type: string;
1388
- is_inclusive: boolean;
1389
- nights: number;
1390
- persons: number;
1391
- price_mode: string;
1392
- price_per_unit: string;
1393
- total_price: string;
1394
- }[];
1395
- services?: any[] | undefined;
1396
- }, {
1397
- meta: {
1398
- meal_plan: string | null;
1399
- policies: string | null;
1400
- room_type_code: string | null;
1401
- smoking_preferences: string | null;
1402
- promotion?: {
1403
- from_code: string;
1404
- from_name: string;
1405
- promotion_id: string;
1406
- to_code: string;
1407
- }[] | undefined;
1408
- additional_details?: any[] | undefined;
1409
- cancel_penalties?: {
1410
- currency: string;
1411
- amount: string;
1412
- from: string;
1413
- }[] | undefined;
1414
- days_breakdown?: ({
1415
- date: string;
1416
- amount: string;
1417
- promotion: {
1418
- id: string;
1419
- title: string;
1420
- } | null;
1421
- rate_code: number;
1422
- rate_plan: string;
1423
- } | undefined)[] | undefined;
1424
- } | null;
1425
- days: Record<string, string>;
1426
- occupancy: {
1427
- children: number;
1428
- adults: number;
1429
- infants: number;
1430
- };
1431
- amount: string;
1432
- booking_room_id: string;
1433
- checkin_date: string;
1434
- checkout_date: string;
1435
- guests: {
1436
- name: string;
1437
- surname: string;
1438
- }[] | null;
1439
- rate_plan_id: string;
1440
- room_type_id: string;
1441
- taxes: {
1442
- name: string;
1443
- type: string;
1444
- is_inclusive: boolean;
1445
- nights: number;
1446
- persons: number;
1447
- price_mode: string;
1448
- price_per_unit: string;
1449
- total_price: string;
1450
- }[];
1451
- services?: any[] | undefined;
1452
- }>, "many">;
1453
- services: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodAny, "many">>;
1454
- status: import("zod").ZodString;
1455
- unique_id: import("zod").ZodString;
1456
- }, "strip", import("zod").ZodTypeAny, {
1457
- currency: string;
1458
- id: string;
1459
- status: string;
1460
- occupancy: {
1461
- children: number;
1462
- adults: number;
1463
- infants: number;
1464
- };
1465
- amount: string;
1466
- notes: string | null;
1467
- services: any[] | null;
1468
- ota_commission: string | null;
1469
- arrival_date: string;
1470
- arrival_hour: string | null;
1471
- customer: {
1472
- name: string;
1473
- address: string | null;
1474
- country: string | null;
1475
- language: string | null;
1476
- phone: string | null;
1477
- city: string | null;
1478
- company: string | null;
1479
- mail: string;
1480
- surname: string;
1481
- zip: string | null;
1482
- meta?: {
1483
- is_genius?: boolean | undefined;
1484
- } | undefined;
1485
- };
1486
- departure_date: string;
1487
- guarantee: {
1488
- card_number: string;
1489
- card_type: string;
1490
- cardholder_name: string;
1491
- cvv: string;
1492
- expiration_date: string;
1493
- is_virtual: boolean;
1494
- } | null;
1495
- inserted_at: string;
1496
- ota_name: string;
1497
- ota_reservation_code: string;
1498
- payment_collect: string | null;
1499
- payment_type: string | null;
1500
- property_id: string;
1501
- revision_id: string;
1502
- rooms: {
1503
- meta: {
1504
- meal_plan: string | null;
1505
- policies: string | null;
1506
- room_type_code: string | null;
1507
- smoking_preferences: string | null;
1508
- promotion?: {
1509
- from_code: string;
1510
- from_name: string;
1511
- promotion_id: string;
1512
- to_code: string;
1513
- }[] | undefined;
1514
- additional_details?: any[] | undefined;
1515
- cancel_penalties?: {
1516
- currency: string;
1517
- amount: string;
1518
- from: string;
1519
- }[] | undefined;
1520
- days_breakdown?: ({
1521
- date: string;
1522
- amount: string;
1523
- promotion: {
1524
- id: string;
1525
- title: string;
1526
- } | null;
1527
- rate_code: number;
1528
- rate_plan: string;
1529
- } | undefined)[] | undefined;
1530
- } | null;
1531
- days: Record<string, string>;
1532
- occupancy: {
1533
- children: number;
1534
- adults: number;
1535
- infants: number;
1536
- };
1537
- amount: string;
1538
- booking_room_id: string;
1539
- checkin_date: string;
1540
- checkout_date: string;
1541
- guests: {
1542
- name: string;
1543
- surname: string;
1544
- }[] | null;
1545
- rate_plan_id: string;
1546
- room_type_id: string;
1547
- taxes: {
1548
- name: string;
1549
- type: string;
1550
- is_inclusive: boolean;
1551
- nights: number;
1552
- persons: number;
1553
- price_mode: string;
1554
- price_per_unit: string;
1555
- total_price: string;
1556
- }[];
1557
- services?: any[] | undefined;
1558
- }[];
1559
- unique_id: string;
1560
- }, {
1561
- currency: string;
1562
- id: string;
1563
- status: string;
1564
- occupancy: {
1565
- children: number;
1566
- adults: number;
1567
- infants: number;
1568
- };
1569
- amount: string;
1570
- notes: string | null;
1571
- services: any[] | null;
1572
- ota_commission: string | null;
1573
- arrival_date: string;
1574
- arrival_hour: string | null;
1575
- customer: {
1576
- name: string;
1577
- address: string | null;
1578
- country: string | null;
1579
- language: string | null;
1580
- phone: string | null;
1581
- city: string | null;
1582
- company: string | null;
1583
- mail: string;
1584
- surname: string;
1585
- zip: string | null;
1586
- meta?: {
1587
- is_genius?: boolean | undefined;
1588
- } | undefined;
1589
- };
1590
- departure_date: string;
1591
- guarantee: {
1592
- card_number: string;
1593
- card_type: string;
1594
- cardholder_name: string;
1595
- cvv: string;
1596
- expiration_date: string;
1597
- is_virtual: boolean;
1598
- } | null;
1599
- inserted_at: string;
1600
- ota_name: string;
1601
- ota_reservation_code: string;
1602
- payment_collect: string | null;
1603
- payment_type: string | null;
1604
- property_id: string;
1605
- revision_id: string;
1606
- rooms: {
1607
- meta: {
1608
- meal_plan: string | null;
1609
- policies: string | null;
1610
- room_type_code: string | null;
1611
- smoking_preferences: string | null;
1612
- promotion?: {
1613
- from_code: string;
1614
- from_name: string;
1615
- promotion_id: string;
1616
- to_code: string;
1617
- }[] | undefined;
1618
- additional_details?: any[] | undefined;
1619
- cancel_penalties?: {
1620
- currency: string;
1621
- amount: string;
1622
- from: string;
1623
- }[] | undefined;
1624
- days_breakdown?: ({
1625
- date: string;
1626
- amount: string;
1627
- promotion: {
1628
- id: string;
1629
- title: string;
1630
- } | null;
1631
- rate_code: number;
1632
- rate_plan: string;
1633
- } | undefined)[] | undefined;
1634
- } | null;
1635
- days: Record<string, string>;
1636
- occupancy: {
1637
- children: number;
1638
- adults: number;
1639
- infants: number;
1640
- };
1641
- amount: string;
1642
- booking_room_id: string;
1643
- checkin_date: string;
1644
- checkout_date: string;
1645
- guests: {
1646
- name: string;
1647
- surname: string;
1648
- }[] | null;
1649
- rate_plan_id: string;
1650
- room_type_id: string;
1651
- taxes: {
1652
- name: string;
1653
- type: string;
1654
- is_inclusive: boolean;
1655
- nights: number;
1656
- persons: number;
1657
- price_mode: string;
1658
- price_per_unit: string;
1659
- total_price: string;
1660
- }[];
1661
- services?: any[] | undefined;
1662
- }[];
1663
- unique_id: string;
1664
- }>;
1665
- }, "strip", import("zod").ZodTypeAny, {
1666
- type: string;
1667
- id: string;
1668
- attributes: {
1669
- currency: string;
1670
- id: string;
1671
- status: string;
1672
- occupancy: {
1673
- children: number;
1674
- adults: number;
1675
- infants: number;
1676
- };
1677
- amount: string;
1678
- notes: string | null;
1679
- services: any[] | null;
1680
- ota_commission: string | null;
1681
- arrival_date: string;
1682
- arrival_hour: string | null;
1683
- customer: {
1684
- name: string;
1685
- address: string | null;
1686
- country: string | null;
1687
- language: string | null;
1688
- phone: string | null;
1689
- city: string | null;
1690
- company: string | null;
1691
- mail: string;
1692
- surname: string;
1693
- zip: string | null;
1694
- meta?: {
1695
- is_genius?: boolean | undefined;
1696
- } | undefined;
1697
- };
1698
- departure_date: string;
1699
- guarantee: {
1700
- card_number: string;
1701
- card_type: string;
1702
- cardholder_name: string;
1703
- cvv: string;
1704
- expiration_date: string;
1705
- is_virtual: boolean;
1706
- } | null;
1707
- inserted_at: string;
1708
- ota_name: string;
1709
- ota_reservation_code: string;
1710
- payment_collect: string | null;
1711
- payment_type: string | null;
1712
- property_id: string;
1713
- revision_id: string;
1714
- rooms: {
1715
- meta: {
1716
- meal_plan: string | null;
1717
- policies: string | null;
1718
- room_type_code: string | null;
1719
- smoking_preferences: string | null;
1720
- promotion?: {
1721
- from_code: string;
1722
- from_name: string;
1723
- promotion_id: string;
1724
- to_code: string;
1725
- }[] | undefined;
1726
- additional_details?: any[] | undefined;
1727
- cancel_penalties?: {
1728
- currency: string;
1729
- amount: string;
1730
- from: string;
1731
- }[] | undefined;
1732
- days_breakdown?: ({
1733
- date: string;
1734
- amount: string;
1735
- promotion: {
1736
- id: string;
1737
- title: string;
1738
- } | null;
1739
- rate_code: number;
1740
- rate_plan: string;
1741
- } | undefined)[] | undefined;
1742
- } | null;
1743
- days: Record<string, string>;
1744
- occupancy: {
1745
- children: number;
1746
- adults: number;
1747
- infants: number;
1748
- };
1749
- amount: string;
1750
- booking_room_id: string;
1751
- checkin_date: string;
1752
- checkout_date: string;
1753
- guests: {
1754
- name: string;
1755
- surname: string;
1756
- }[] | null;
1757
- rate_plan_id: string;
1758
- room_type_id: string;
1759
- taxes: {
1760
- name: string;
1761
- type: string;
1762
- is_inclusive: boolean;
1763
- nights: number;
1764
- persons: number;
1765
- price_mode: string;
1766
- price_per_unit: string;
1767
- total_price: string;
1768
- }[];
1769
- services?: any[] | undefined;
1770
- }[];
1771
- unique_id: string;
1772
- };
1773
- }, {
1774
- type: string;
1775
- id: string;
1776
- attributes: {
1777
- currency: string;
1778
- id: string;
1779
- status: string;
1780
- occupancy: {
1781
- children: number;
1782
- adults: number;
1783
- infants: number;
1784
- };
1785
- amount: string;
1786
- notes: string | null;
1787
- services: any[] | null;
1788
- ota_commission: string | null;
1789
- arrival_date: string;
1790
- arrival_hour: string | null;
1791
- customer: {
1792
- name: string;
1793
- address: string | null;
1794
- country: string | null;
1795
- language: string | null;
1796
- phone: string | null;
1797
- city: string | null;
1798
- company: string | null;
1799
- mail: string;
1800
- surname: string;
1801
- zip: string | null;
1802
- meta?: {
1803
- is_genius?: boolean | undefined;
1804
- } | undefined;
1805
- };
1806
- departure_date: string;
1807
- guarantee: {
1808
- card_number: string;
1809
- card_type: string;
1810
- cardholder_name: string;
1811
- cvv: string;
1812
- expiration_date: string;
1813
- is_virtual: boolean;
1814
- } | null;
1815
- inserted_at: string;
1816
- ota_name: string;
1817
- ota_reservation_code: string;
1818
- payment_collect: string | null;
1819
- payment_type: string | null;
1820
- property_id: string;
1821
- revision_id: string;
1822
- rooms: {
1823
- meta: {
1824
- meal_plan: string | null;
1825
- policies: string | null;
1826
- room_type_code: string | null;
1827
- smoking_preferences: string | null;
1828
- promotion?: {
1829
- from_code: string;
1830
- from_name: string;
1831
- promotion_id: string;
1832
- to_code: string;
1833
- }[] | undefined;
1834
- additional_details?: any[] | undefined;
1835
- cancel_penalties?: {
1836
- currency: string;
1837
- amount: string;
1838
- from: string;
1839
- }[] | undefined;
1840
- days_breakdown?: ({
1841
- date: string;
1842
- amount: string;
1843
- promotion: {
1844
- id: string;
1845
- title: string;
1846
- } | null;
1847
- rate_code: number;
1848
- rate_plan: string;
1849
- } | undefined)[] | undefined;
1850
- } | null;
1851
- days: Record<string, string>;
1852
- occupancy: {
1853
- children: number;
1854
- adults: number;
1855
- infants: number;
1856
- };
1857
- amount: string;
1858
- booking_room_id: string;
1859
- checkin_date: string;
1860
- checkout_date: string;
1861
- guests: {
1862
- name: string;
1863
- surname: string;
1864
- }[] | null;
1865
- rate_plan_id: string;
1866
- room_type_id: string;
1867
- taxes: {
1868
- name: string;
1869
- type: string;
1870
- is_inclusive: boolean;
1871
- nights: number;
1872
- persons: number;
1873
- price_mode: string;
1874
- price_per_unit: string;
1875
- total_price: string;
1876
- }[];
1877
- services?: any[] | undefined;
1878
- }[];
1879
- unique_id: string;
1880
- };
1881
- }>;
1075
+ booking_id: import("zod").ZodString;
1076
+ property_id: import("zod").ZodString;
1077
+ revision_id: import("zod").ZodString;
1882
1078
  }, "strip", import("zod").ZodTypeAny, {
1883
- data: {
1884
- type: string;
1885
- id: string;
1886
- attributes: {
1887
- currency: string;
1888
- id: string;
1889
- status: string;
1890
- occupancy: {
1891
- children: number;
1892
- adults: number;
1893
- infants: number;
1894
- };
1895
- amount: string;
1896
- notes: string | null;
1897
- services: any[] | null;
1898
- ota_commission: string | null;
1899
- arrival_date: string;
1900
- arrival_hour: string | null;
1901
- customer: {
1902
- name: string;
1903
- address: string | null;
1904
- country: string | null;
1905
- language: string | null;
1906
- phone: string | null;
1907
- city: string | null;
1908
- company: string | null;
1909
- mail: string;
1910
- surname: string;
1911
- zip: string | null;
1912
- meta?: {
1913
- is_genius?: boolean | undefined;
1914
- } | undefined;
1915
- };
1916
- departure_date: string;
1917
- guarantee: {
1918
- card_number: string;
1919
- card_type: string;
1920
- cardholder_name: string;
1921
- cvv: string;
1922
- expiration_date: string;
1923
- is_virtual: boolean;
1924
- } | null;
1925
- inserted_at: string;
1926
- ota_name: string;
1927
- ota_reservation_code: string;
1928
- payment_collect: string | null;
1929
- payment_type: string | null;
1930
- property_id: string;
1931
- revision_id: string;
1932
- rooms: {
1933
- meta: {
1934
- meal_plan: string | null;
1935
- policies: string | null;
1936
- room_type_code: string | null;
1937
- smoking_preferences: string | null;
1938
- promotion?: {
1939
- from_code: string;
1940
- from_name: string;
1941
- promotion_id: string;
1942
- to_code: string;
1943
- }[] | undefined;
1944
- additional_details?: any[] | undefined;
1945
- cancel_penalties?: {
1946
- currency: string;
1947
- amount: string;
1948
- from: string;
1949
- }[] | undefined;
1950
- days_breakdown?: ({
1951
- date: string;
1952
- amount: string;
1953
- promotion: {
1954
- id: string;
1955
- title: string;
1956
- } | null;
1957
- rate_code: number;
1958
- rate_plan: string;
1959
- } | undefined)[] | undefined;
1960
- } | null;
1961
- days: Record<string, string>;
1962
- occupancy: {
1963
- children: number;
1964
- adults: number;
1965
- infants: number;
1966
- };
1967
- amount: string;
1968
- booking_room_id: string;
1969
- checkin_date: string;
1970
- checkout_date: string;
1971
- guests: {
1972
- name: string;
1973
- surname: string;
1974
- }[] | null;
1975
- rate_plan_id: string;
1976
- room_type_id: string;
1977
- taxes: {
1978
- name: string;
1979
- type: string;
1980
- is_inclusive: boolean;
1981
- nights: number;
1982
- persons: number;
1983
- price_mode: string;
1984
- price_per_unit: string;
1985
- total_price: string;
1986
- }[];
1987
- services?: any[] | undefined;
1988
- }[];
1989
- unique_id: string;
1990
- };
1991
- };
1079
+ property_id: string;
1080
+ revision_id: string;
1081
+ booking_id: string;
1992
1082
  }, {
1993
- data: {
1994
- type: string;
1995
- id: string;
1996
- attributes: {
1997
- currency: string;
1998
- id: string;
1999
- status: string;
2000
- occupancy: {
2001
- children: number;
2002
- adults: number;
2003
- infants: number;
2004
- };
2005
- amount: string;
2006
- notes: string | null;
2007
- services: any[] | null;
2008
- ota_commission: string | null;
2009
- arrival_date: string;
2010
- arrival_hour: string | null;
2011
- customer: {
2012
- name: string;
2013
- address: string | null;
2014
- country: string | null;
2015
- language: string | null;
2016
- phone: string | null;
2017
- city: string | null;
2018
- company: string | null;
2019
- mail: string;
2020
- surname: string;
2021
- zip: string | null;
2022
- meta?: {
2023
- is_genius?: boolean | undefined;
2024
- } | undefined;
2025
- };
2026
- departure_date: string;
2027
- guarantee: {
2028
- card_number: string;
2029
- card_type: string;
2030
- cardholder_name: string;
2031
- cvv: string;
2032
- expiration_date: string;
2033
- is_virtual: boolean;
2034
- } | null;
2035
- inserted_at: string;
2036
- ota_name: string;
2037
- ota_reservation_code: string;
2038
- payment_collect: string | null;
2039
- payment_type: string | null;
2040
- property_id: string;
2041
- revision_id: string;
2042
- rooms: {
2043
- meta: {
2044
- meal_plan: string | null;
2045
- policies: string | null;
2046
- room_type_code: string | null;
2047
- smoking_preferences: string | null;
2048
- promotion?: {
2049
- from_code: string;
2050
- from_name: string;
2051
- promotion_id: string;
2052
- to_code: string;
2053
- }[] | undefined;
2054
- additional_details?: any[] | undefined;
2055
- cancel_penalties?: {
2056
- currency: string;
2057
- amount: string;
2058
- from: string;
2059
- }[] | undefined;
2060
- days_breakdown?: ({
2061
- date: string;
2062
- amount: string;
2063
- promotion: {
2064
- id: string;
2065
- title: string;
2066
- } | null;
2067
- rate_code: number;
2068
- rate_plan: string;
2069
- } | undefined)[] | undefined;
2070
- } | null;
2071
- days: Record<string, string>;
2072
- occupancy: {
2073
- children: number;
2074
- adults: number;
2075
- infants: number;
2076
- };
2077
- amount: string;
2078
- booking_room_id: string;
2079
- checkin_date: string;
2080
- checkout_date: string;
2081
- guests: {
2082
- name: string;
2083
- surname: string;
2084
- }[] | null;
2085
- rate_plan_id: string;
2086
- room_type_id: string;
2087
- taxes: {
2088
- name: string;
2089
- type: string;
2090
- is_inclusive: boolean;
2091
- nights: number;
2092
- persons: number;
2093
- price_mode: string;
2094
- price_per_unit: string;
2095
- total_price: string;
2096
- }[];
2097
- services?: any[] | undefined;
2098
- }[];
2099
- unique_id: string;
2100
- };
2101
- };
1083
+ property_id: string;
1084
+ revision_id: string;
1085
+ booking_id: string;
2102
1086
  }>;
2103
1087
  property_id: import("zod").ZodString;
2104
1088
  }, "strip", import("zod").ZodTypeAny, {
@@ -2106,115 +1090,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
2106
1090
  property_id: string;
2107
1091
  timestamp: string;
2108
1092
  payload: {
2109
- data: {
2110
- type: string;
2111
- id: string;
2112
- attributes: {
2113
- currency: string;
2114
- id: string;
2115
- status: string;
2116
- occupancy: {
2117
- children: number;
2118
- adults: number;
2119
- infants: number;
2120
- };
2121
- amount: string;
2122
- notes: string | null;
2123
- services: any[] | null;
2124
- ota_commission: string | null;
2125
- arrival_date: string;
2126
- arrival_hour: string | null;
2127
- customer: {
2128
- name: string;
2129
- address: string | null;
2130
- country: string | null;
2131
- language: string | null;
2132
- phone: string | null;
2133
- city: string | null;
2134
- company: string | null;
2135
- mail: string;
2136
- surname: string;
2137
- zip: string | null;
2138
- meta?: {
2139
- is_genius?: boolean | undefined;
2140
- } | undefined;
2141
- };
2142
- departure_date: string;
2143
- guarantee: {
2144
- card_number: string;
2145
- card_type: string;
2146
- cardholder_name: string;
2147
- cvv: string;
2148
- expiration_date: string;
2149
- is_virtual: boolean;
2150
- } | null;
2151
- inserted_at: string;
2152
- ota_name: string;
2153
- ota_reservation_code: string;
2154
- payment_collect: string | null;
2155
- payment_type: string | null;
2156
- property_id: string;
2157
- revision_id: string;
2158
- rooms: {
2159
- meta: {
2160
- meal_plan: string | null;
2161
- policies: string | null;
2162
- room_type_code: string | null;
2163
- smoking_preferences: string | null;
2164
- promotion?: {
2165
- from_code: string;
2166
- from_name: string;
2167
- promotion_id: string;
2168
- to_code: string;
2169
- }[] | undefined;
2170
- additional_details?: any[] | undefined;
2171
- cancel_penalties?: {
2172
- currency: string;
2173
- amount: string;
2174
- from: string;
2175
- }[] | undefined;
2176
- days_breakdown?: ({
2177
- date: string;
2178
- amount: string;
2179
- promotion: {
2180
- id: string;
2181
- title: string;
2182
- } | null;
2183
- rate_code: number;
2184
- rate_plan: string;
2185
- } | undefined)[] | undefined;
2186
- } | null;
2187
- days: Record<string, string>;
2188
- occupancy: {
2189
- children: number;
2190
- adults: number;
2191
- infants: number;
2192
- };
2193
- amount: string;
2194
- booking_room_id: string;
2195
- checkin_date: string;
2196
- checkout_date: string;
2197
- guests: {
2198
- name: string;
2199
- surname: string;
2200
- }[] | null;
2201
- rate_plan_id: string;
2202
- room_type_id: string;
2203
- taxes: {
2204
- name: string;
2205
- type: string;
2206
- is_inclusive: boolean;
2207
- nights: number;
2208
- persons: number;
2209
- price_mode: string;
2210
- price_per_unit: string;
2211
- total_price: string;
2212
- }[];
2213
- services?: any[] | undefined;
2214
- }[];
2215
- unique_id: string;
2216
- };
2217
- };
1093
+ property_id: string;
1094
+ revision_id: string;
1095
+ booking_id: string;
2218
1096
  };
2219
1097
  user_id?: string | null | undefined;
2220
1098
  }, {
@@ -2222,115 +1100,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
2222
1100
  property_id: string;
2223
1101
  timestamp: string;
2224
1102
  payload: {
2225
- data: {
2226
- type: string;
2227
- id: string;
2228
- attributes: {
2229
- currency: string;
2230
- id: string;
2231
- status: string;
2232
- occupancy: {
2233
- children: number;
2234
- adults: number;
2235
- infants: number;
2236
- };
2237
- amount: string;
2238
- notes: string | null;
2239
- services: any[] | null;
2240
- ota_commission: string | null;
2241
- arrival_date: string;
2242
- arrival_hour: string | null;
2243
- customer: {
2244
- name: string;
2245
- address: string | null;
2246
- country: string | null;
2247
- language: string | null;
2248
- phone: string | null;
2249
- city: string | null;
2250
- company: string | null;
2251
- mail: string;
2252
- surname: string;
2253
- zip: string | null;
2254
- meta?: {
2255
- is_genius?: boolean | undefined;
2256
- } | undefined;
2257
- };
2258
- departure_date: string;
2259
- guarantee: {
2260
- card_number: string;
2261
- card_type: string;
2262
- cardholder_name: string;
2263
- cvv: string;
2264
- expiration_date: string;
2265
- is_virtual: boolean;
2266
- } | null;
2267
- inserted_at: string;
2268
- ota_name: string;
2269
- ota_reservation_code: string;
2270
- payment_collect: string | null;
2271
- payment_type: string | null;
2272
- property_id: string;
2273
- revision_id: string;
2274
- rooms: {
2275
- meta: {
2276
- meal_plan: string | null;
2277
- policies: string | null;
2278
- room_type_code: string | null;
2279
- smoking_preferences: string | null;
2280
- promotion?: {
2281
- from_code: string;
2282
- from_name: string;
2283
- promotion_id: string;
2284
- to_code: string;
2285
- }[] | undefined;
2286
- additional_details?: any[] | undefined;
2287
- cancel_penalties?: {
2288
- currency: string;
2289
- amount: string;
2290
- from: string;
2291
- }[] | undefined;
2292
- days_breakdown?: ({
2293
- date: string;
2294
- amount: string;
2295
- promotion: {
2296
- id: string;
2297
- title: string;
2298
- } | null;
2299
- rate_code: number;
2300
- rate_plan: string;
2301
- } | undefined)[] | undefined;
2302
- } | null;
2303
- days: Record<string, string>;
2304
- occupancy: {
2305
- children: number;
2306
- adults: number;
2307
- infants: number;
2308
- };
2309
- amount: string;
2310
- booking_room_id: string;
2311
- checkin_date: string;
2312
- checkout_date: string;
2313
- guests: {
2314
- name: string;
2315
- surname: string;
2316
- }[] | null;
2317
- rate_plan_id: string;
2318
- room_type_id: string;
2319
- taxes: {
2320
- name: string;
2321
- type: string;
2322
- is_inclusive: boolean;
2323
- nights: number;
2324
- persons: number;
2325
- price_mode: string;
2326
- price_per_unit: string;
2327
- total_price: string;
2328
- }[];
2329
- services?: any[] | undefined;
2330
- }[];
2331
- unique_id: string;
2332
- };
2333
- };
1103
+ property_id: string;
1104
+ revision_id: string;
1105
+ booking_id: string;
2334
1106
  };
2335
1107
  user_id?: string | null | undefined;
2336
1108
  }>;