hububb-saas-shared 1.0.98 → 1.0.99

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.
@@ -405,49 +405,6 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
405
405
  currency: string;
406
406
  id: string;
407
407
  status: string;
408
- occupancy: {
409
- children: number;
410
- adults: number;
411
- infants: number;
412
- };
413
- amount: string;
414
- notes: string | null;
415
- services: any[] | null;
416
- ota_commission: string | null;
417
- arrival_date: string;
418
- arrival_hour: string | null;
419
- customer: {
420
- name: string;
421
- address: string | null;
422
- country: string | null;
423
- language: string | null;
424
- phone: string | null;
425
- city: string | null;
426
- company: string | null;
427
- mail: string;
428
- surname: string;
429
- zip: string | null;
430
- meta?: {
431
- is_genius?: boolean | undefined;
432
- } | undefined;
433
- };
434
- departure_date: string;
435
- guarantee: {
436
- card_number: string;
437
- card_type: string;
438
- cardholder_name: string;
439
- cvv: string;
440
- expiration_date: string;
441
- is_virtual: boolean;
442
- } | null;
443
- inserted_at: string;
444
- ota_name: string;
445
- ota_reservation_code: string;
446
- payment_collect: string | null;
447
- payment_type: string | null;
448
- property_id: string;
449
- channel_id: string;
450
- revision_id: string;
451
408
  rooms: {
452
409
  meta: {
453
410
  meal_plan: string | null;
@@ -505,11 +462,6 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
505
462
  }[];
506
463
  services?: any[] | undefined;
507
464
  }[];
508
- unique_id: string;
509
- }, {
510
- currency: string;
511
- id: string;
512
- status: string;
513
465
  occupancy: {
514
466
  children: number;
515
467
  adults: number;
@@ -553,6 +505,11 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
553
505
  property_id: string;
554
506
  channel_id: string;
555
507
  revision_id: string;
508
+ unique_id: string;
509
+ }, {
510
+ currency: string;
511
+ id: string;
512
+ status: string;
556
513
  rooms: {
557
514
  meta: {
558
515
  meal_plan: string | null;
@@ -610,15 +567,6 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
610
567
  }[];
611
568
  services?: any[] | undefined;
612
569
  }[];
613
- unique_id: string;
614
- }>;
615
- }, "strip", import("zod").ZodTypeAny, {
616
- type: string;
617
- id: string;
618
- attributes: {
619
- currency: string;
620
- id: string;
621
- status: string;
622
570
  occupancy: {
623
571
  children: number;
624
572
  adults: number;
@@ -662,6 +610,15 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
662
610
  property_id: string;
663
611
  channel_id: string;
664
612
  revision_id: string;
613
+ unique_id: string;
614
+ }>;
615
+ }, "strip", import("zod").ZodTypeAny, {
616
+ type: string;
617
+ id: string;
618
+ attributes: {
619
+ currency: string;
620
+ id: string;
621
+ status: string;
665
622
  rooms: {
666
623
  meta: {
667
624
  meal_plan: string | null;
@@ -719,15 +676,6 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
719
676
  }[];
720
677
  services?: any[] | undefined;
721
678
  }[];
722
- unique_id: string;
723
- };
724
- }, {
725
- type: string;
726
- id: string;
727
- attributes: {
728
- currency: string;
729
- id: string;
730
- status: string;
731
679
  occupancy: {
732
680
  children: number;
733
681
  adults: number;
@@ -771,6 +719,15 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
771
719
  property_id: string;
772
720
  channel_id: string;
773
721
  revision_id: string;
722
+ unique_id: string;
723
+ };
724
+ }, {
725
+ type: string;
726
+ id: string;
727
+ attributes: {
728
+ currency: string;
729
+ id: string;
730
+ status: string;
774
731
  rooms: {
775
732
  meta: {
776
733
  meal_plan: string | null;
@@ -828,17 +785,6 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
828
785
  }[];
829
786
  services?: any[] | undefined;
830
787
  }[];
831
- unique_id: string;
832
- };
833
- }>;
834
- }, "strip", import("zod").ZodTypeAny, {
835
- data: {
836
- type: string;
837
- id: string;
838
- attributes: {
839
- currency: string;
840
- id: string;
841
- status: string;
842
788
  occupancy: {
843
789
  children: number;
844
790
  adults: number;
@@ -882,6 +828,17 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
882
828
  property_id: string;
883
829
  channel_id: string;
884
830
  revision_id: string;
831
+ unique_id: string;
832
+ };
833
+ }>;
834
+ }, "strip", import("zod").ZodTypeAny, {
835
+ data: {
836
+ type: string;
837
+ id: string;
838
+ attributes: {
839
+ currency: string;
840
+ id: string;
841
+ status: string;
885
842
  rooms: {
886
843
  meta: {
887
844
  meal_plan: string | null;
@@ -939,17 +896,6 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
939
896
  }[];
940
897
  services?: any[] | undefined;
941
898
  }[];
942
- unique_id: string;
943
- };
944
- };
945
- }, {
946
- data: {
947
- type: string;
948
- id: string;
949
- attributes: {
950
- currency: string;
951
- id: string;
952
- status: string;
953
899
  occupancy: {
954
900
  children: number;
955
901
  adults: number;
@@ -993,6 +939,17 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
993
939
  property_id: string;
994
940
  channel_id: string;
995
941
  revision_id: string;
942
+ unique_id: string;
943
+ };
944
+ };
945
+ }, {
946
+ data: {
947
+ type: string;
948
+ id: string;
949
+ attributes: {
950
+ currency: string;
951
+ id: string;
952
+ status: string;
996
953
  rooms: {
997
954
  meta: {
998
955
  meal_plan: string | null;
@@ -1050,6 +1007,49 @@ export declare const BookingResponseSchema: import("zod").ZodObject<{
1050
1007
  }[];
1051
1008
  services?: any[] | undefined;
1052
1009
  }[];
1010
+ occupancy: {
1011
+ children: number;
1012
+ adults: number;
1013
+ infants: number;
1014
+ };
1015
+ amount: string;
1016
+ notes: string | null;
1017
+ services: any[] | null;
1018
+ ota_commission: string | null;
1019
+ arrival_date: string;
1020
+ arrival_hour: string | null;
1021
+ customer: {
1022
+ name: string;
1023
+ address: string | null;
1024
+ country: string | null;
1025
+ language: string | null;
1026
+ phone: string | null;
1027
+ city: string | null;
1028
+ company: string | null;
1029
+ mail: string;
1030
+ surname: string;
1031
+ zip: string | null;
1032
+ meta?: {
1033
+ is_genius?: boolean | undefined;
1034
+ } | undefined;
1035
+ };
1036
+ departure_date: string;
1037
+ guarantee: {
1038
+ card_number: string;
1039
+ card_type: string;
1040
+ cardholder_name: string;
1041
+ cvv: string;
1042
+ expiration_date: string;
1043
+ is_virtual: boolean;
1044
+ } | null;
1045
+ inserted_at: string;
1046
+ ota_name: string;
1047
+ ota_reservation_code: string;
1048
+ payment_collect: string | null;
1049
+ payment_type: string | null;
1050
+ property_id: string;
1051
+ channel_id: string;
1052
+ revision_id: string;
1053
1053
  unique_id: string;
1054
1054
  };
1055
1055
  };
@@ -1515,40 +1515,6 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1515
1515
  thread_id: string;
1516
1516
  };
1517
1517
  status: string;
1518
- occupancy: {
1519
- children: number;
1520
- adults: number;
1521
- infants: number;
1522
- ages?: {}[] | null | undefined;
1523
- };
1524
- amount: string;
1525
- services: {}[];
1526
- ota_commission: string;
1527
- arrival_date: string;
1528
- customer: {
1529
- name: string;
1530
- address: string | null;
1531
- country: string | null;
1532
- language: string | null;
1533
- phone: string | null;
1534
- city: string | null;
1535
- company: string | null;
1536
- mail: string;
1537
- surname: string;
1538
- zip: string | null;
1539
- meta?: {
1540
- is_genius?: boolean | undefined;
1541
- } | undefined;
1542
- };
1543
- departure_date: string;
1544
- inserted_at: string;
1545
- ota_name: string;
1546
- ota_reservation_code: string;
1547
- payment_collect: string;
1548
- payment_type: string;
1549
- property_id: string;
1550
- channel_id: string;
1551
- revision_id: string;
1552
1518
  rooms: {
1553
1519
  meta: {
1554
1520
  meal_plan: string | null;
@@ -1606,25 +1572,6 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1606
1572
  }[];
1607
1573
  services?: any[] | undefined;
1608
1574
  }[];
1609
- unique_id: string;
1610
- booking_id: string;
1611
- deposits: {}[];
1612
- acknowledge_status: string;
1613
- has_unacked_revisions: boolean;
1614
- raw_message: string;
1615
- notes?: string | null | undefined;
1616
- arrival_hour?: string | null | undefined;
1617
- guarantee?: {} | null | undefined;
1618
- agent?: string | null | undefined;
1619
- secondary_ota?: string | null | undefined;
1620
- }, {
1621
- currency: string;
1622
- id: string;
1623
- meta: {
1624
- listing_id: string;
1625
- thread_id: string;
1626
- };
1627
- status: string;
1628
1575
  occupancy: {
1629
1576
  children: number;
1630
1577
  adults: number;
@@ -1659,6 +1606,25 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1659
1606
  property_id: string;
1660
1607
  channel_id: string;
1661
1608
  revision_id: string;
1609
+ unique_id: string;
1610
+ booking_id: string;
1611
+ deposits: {}[];
1612
+ acknowledge_status: string;
1613
+ has_unacked_revisions: boolean;
1614
+ raw_message: string;
1615
+ notes?: string | null | undefined;
1616
+ arrival_hour?: string | null | undefined;
1617
+ guarantee?: {} | null | undefined;
1618
+ agent?: string | null | undefined;
1619
+ secondary_ota?: string | null | undefined;
1620
+ }, {
1621
+ currency: string;
1622
+ id: string;
1623
+ meta: {
1624
+ listing_id: string;
1625
+ thread_id: string;
1626
+ };
1627
+ status: string;
1662
1628
  rooms: {
1663
1629
  meta: {
1664
1630
  meal_plan: string | null;
@@ -1716,29 +1682,6 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1716
1682
  }[];
1717
1683
  services?: any[] | undefined;
1718
1684
  }[];
1719
- unique_id: string;
1720
- booking_id: string;
1721
- deposits: {}[];
1722
- acknowledge_status: string;
1723
- has_unacked_revisions: boolean;
1724
- raw_message: string;
1725
- notes?: string | null | undefined;
1726
- arrival_hour?: string | null | undefined;
1727
- guarantee?: {} | null | undefined;
1728
- agent?: string | null | undefined;
1729
- secondary_ota?: string | null | undefined;
1730
- }>;
1731
- }, "strip", import("zod").ZodTypeAny, {
1732
- type: "booking";
1733
- id: string;
1734
- attributes: {
1735
- currency: string;
1736
- id: string;
1737
- meta: {
1738
- listing_id: string;
1739
- thread_id: string;
1740
- };
1741
- status: string;
1742
1685
  occupancy: {
1743
1686
  children: number;
1744
1687
  adults: number;
@@ -1773,6 +1716,29 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1773
1716
  property_id: string;
1774
1717
  channel_id: string;
1775
1718
  revision_id: string;
1719
+ unique_id: string;
1720
+ booking_id: string;
1721
+ deposits: {}[];
1722
+ acknowledge_status: string;
1723
+ has_unacked_revisions: boolean;
1724
+ raw_message: string;
1725
+ notes?: string | null | undefined;
1726
+ arrival_hour?: string | null | undefined;
1727
+ guarantee?: {} | null | undefined;
1728
+ agent?: string | null | undefined;
1729
+ secondary_ota?: string | null | undefined;
1730
+ }>;
1731
+ }, "strip", import("zod").ZodTypeAny, {
1732
+ type: "booking";
1733
+ id: string;
1734
+ attributes: {
1735
+ currency: string;
1736
+ id: string;
1737
+ meta: {
1738
+ listing_id: string;
1739
+ thread_id: string;
1740
+ };
1741
+ status: string;
1776
1742
  rooms: {
1777
1743
  meta: {
1778
1744
  meal_plan: string | null;
@@ -1830,29 +1796,6 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1830
1796
  }[];
1831
1797
  services?: any[] | undefined;
1832
1798
  }[];
1833
- unique_id: string;
1834
- booking_id: string;
1835
- deposits: {}[];
1836
- acknowledge_status: string;
1837
- has_unacked_revisions: boolean;
1838
- raw_message: string;
1839
- notes?: string | null | undefined;
1840
- arrival_hour?: string | null | undefined;
1841
- guarantee?: {} | null | undefined;
1842
- agent?: string | null | undefined;
1843
- secondary_ota?: string | null | undefined;
1844
- };
1845
- }, {
1846
- type: "booking";
1847
- id: string;
1848
- attributes: {
1849
- currency: string;
1850
- id: string;
1851
- meta: {
1852
- listing_id: string;
1853
- thread_id: string;
1854
- };
1855
- status: string;
1856
1799
  occupancy: {
1857
1800
  children: number;
1858
1801
  adults: number;
@@ -1887,6 +1830,29 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1887
1830
  property_id: string;
1888
1831
  channel_id: string;
1889
1832
  revision_id: string;
1833
+ unique_id: string;
1834
+ booking_id: string;
1835
+ deposits: {}[];
1836
+ acknowledge_status: string;
1837
+ has_unacked_revisions: boolean;
1838
+ raw_message: string;
1839
+ notes?: string | null | undefined;
1840
+ arrival_hour?: string | null | undefined;
1841
+ guarantee?: {} | null | undefined;
1842
+ agent?: string | null | undefined;
1843
+ secondary_ota?: string | null | undefined;
1844
+ };
1845
+ }, {
1846
+ type: "booking";
1847
+ id: string;
1848
+ attributes: {
1849
+ currency: string;
1850
+ id: string;
1851
+ meta: {
1852
+ listing_id: string;
1853
+ thread_id: string;
1854
+ };
1855
+ status: string;
1890
1856
  rooms: {
1891
1857
  meta: {
1892
1858
  meal_plan: string | null;
@@ -1944,6 +1910,40 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
1944
1910
  }[];
1945
1911
  services?: any[] | undefined;
1946
1912
  }[];
1913
+ occupancy: {
1914
+ children: number;
1915
+ adults: number;
1916
+ infants: number;
1917
+ ages?: {}[] | null | undefined;
1918
+ };
1919
+ amount: string;
1920
+ services: {}[];
1921
+ ota_commission: string;
1922
+ arrival_date: string;
1923
+ customer: {
1924
+ name: string;
1925
+ address: string | null;
1926
+ country: string | null;
1927
+ language: string | null;
1928
+ phone: string | null;
1929
+ city: string | null;
1930
+ company: string | null;
1931
+ mail: string;
1932
+ surname: string;
1933
+ zip: string | null;
1934
+ meta?: {
1935
+ is_genius?: boolean | undefined;
1936
+ } | undefined;
1937
+ };
1938
+ departure_date: string;
1939
+ inserted_at: string;
1940
+ ota_name: string;
1941
+ ota_reservation_code: string;
1942
+ payment_collect: string;
1943
+ payment_type: string;
1944
+ property_id: string;
1945
+ channel_id: string;
1946
+ revision_id: string;
1947
1947
  unique_id: string;
1948
1948
  booking_id: string;
1949
1949
  deposits: {}[];
@@ -1,6 +1,7 @@
1
1
  export declare enum ServiceType {
2
- ON_DEMAND = "FULL",
3
- SUBSCRIPTION = "PRORATED"
2
+ INTEGRATION = "INTEGRATION",
3
+ ON_DEMAND = "ON_DEMAND",
4
+ RECURRING = "RECURRING"
4
5
  }
5
6
  export declare enum TaskStatus {
6
7
  PENDING = "PENDING",
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
4
4
  var ServiceType;
5
5
  (function (ServiceType) {
6
- ServiceType["ON_DEMAND"] = "FULL";
7
- ServiceType["SUBSCRIPTION"] = "PRORATED";
6
+ ServiceType["INTEGRATION"] = "INTEGRATION";
7
+ ServiceType["ON_DEMAND"] = "ON_DEMAND";
8
+ ServiceType["RECURRING"] = "RECURRING";
8
9
  })(ServiceType || (exports.ServiceType = ServiceType = {}));
9
10
  var TaskStatus;
10
11
  (function (TaskStatus) {
@@ -233,7 +233,7 @@ export declare const updatePropertySchema: z.ZodObject<{
233
233
  thumbnailUrl: string;
234
234
  sortOrder: number;
235
235
  }>, "many">>;
236
- room: z.ZodOptional<z.ZodObject<{
236
+ rooms: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
237
  id: z.ZodNumber;
238
238
  title: z.ZodString;
239
239
  }, "strip", z.ZodTypeAny, {
@@ -242,7 +242,7 @@ export declare const updatePropertySchema: z.ZodObject<{
242
242
  }, {
243
243
  id: number;
244
244
  title: string;
245
- }>>;
245
+ }>, "many">>;
246
246
  }, "strip", z.ZodTypeAny, {
247
247
  address?: {
248
248
  state?: string | undefined;
@@ -299,10 +299,10 @@ export declare const updatePropertySchema: z.ZodObject<{
299
299
  thumbnailUrl: string;
300
300
  sortOrder: number;
301
301
  }[] | undefined;
302
- room?: {
302
+ rooms?: {
303
303
  id: number;
304
304
  title: string;
305
- } | undefined;
305
+ }[] | undefined;
306
306
  }, {
307
307
  address?: {
308
308
  state?: string | undefined;
@@ -359,8 +359,8 @@ export declare const updatePropertySchema: z.ZodObject<{
359
359
  thumbnailUrl: string;
360
360
  sortOrder: number;
361
361
  }[] | undefined;
362
- room?: {
362
+ rooms?: {
363
363
  id: number;
364
364
  title: string;
365
- } | undefined;
365
+ }[] | undefined;
366
366
  }>;
@@ -97,8 +97,10 @@ exports.updatePropertySchema = (0, zod_1.object)({
97
97
  caption: (0, zod_1.string)(),
98
98
  }))
99
99
  .optional(),
100
- room: (0, zod_1.object)({
100
+ rooms: zod_1.z
101
+ .array((0, zod_1.object)({
101
102
  id: (0, zod_1.number)(),
102
103
  title: (0, zod_1.string)(),
103
- }).optional(),
104
+ }))
105
+ .optional(),
104
106
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.98",
4
+ "version": "1.0.99",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",