hububb-saas-shared 1.0.10 → 1.0.12

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