hububb-saas-shared 1.2.46 → 1.2.48

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.
@@ -5,6 +5,7 @@ export declare const availabilitySettingsSchema: z.ZodObject<{
5
5
  createdAt: z.ZodDate;
6
6
  updatedAt: z.ZodDate;
7
7
  hasAvailability: z.ZodBoolean;
8
+ allowRtbAboveMaxNights: z.ZodOptional<z.ZodBoolean>;
8
9
  bookingLeadTime: z.ZodOptional<z.ZodNumber>;
9
10
  sameDayBookingCutoffTime: z.ZodOptional<z.ZodString>;
10
11
  preparationTimeNights: z.ZodOptional<z.ZodNumber>;
@@ -19,6 +20,7 @@ export declare const availabilitySettingsSchema: z.ZodObject<{
19
20
  updatedAt: Date;
20
21
  propertyId: number;
21
22
  hasAvailability: boolean;
23
+ allowRtbAboveMaxNights?: boolean | undefined;
22
24
  bookingLeadTime?: number | undefined;
23
25
  sameDayBookingCutoffTime?: string | undefined;
24
26
  preparationTimeNights?: number | undefined;
@@ -33,6 +35,7 @@ export declare const availabilitySettingsSchema: z.ZodObject<{
33
35
  updatedAt: Date;
34
36
  propertyId: number;
35
37
  hasAvailability: boolean;
38
+ allowRtbAboveMaxNights?: boolean | undefined;
36
39
  bookingLeadTime?: number | undefined;
37
40
  sameDayBookingCutoffTime?: string | undefined;
38
41
  preparationTimeNights?: number | undefined;
@@ -8,6 +8,7 @@ exports.availabilitySettingsSchema = (0, zod_1.object)({
8
8
  createdAt: (0, zod_1.date)(),
9
9
  updatedAt: (0, zod_1.date)(),
10
10
  hasAvailability: (0, zod_1.boolean)(),
11
+ allowRtbAboveMaxNights: (0, zod_1.boolean)().optional(),
11
12
  bookingLeadTime: (0, zod_1.number)().int().optional(),
12
13
  sameDayBookingCutoffTime: (0, zod_1.string)().optional(),
13
14
  preparationTimeNights: (0, zod_1.number)().int().optional(),
@@ -108,3 +108,4 @@ export * from "./early-bird-discount";
108
108
  export * from "./pass-through-tax";
109
109
  export * from "./booking-settings";
110
110
  export * from "./availability-settings";
111
+ export * from "./seasonal-min-nights";
@@ -124,3 +124,4 @@ __exportStar(require("./early-bird-discount"), exports);
124
124
  __exportStar(require("./pass-through-tax"), exports);
125
125
  __exportStar(require("./booking-settings"), exports);
126
126
  __exportStar(require("./availability-settings"), exports);
127
+ __exportStar(require("./seasonal-min-nights"), exports);
@@ -0,0 +1,19 @@
1
+ export declare const seasonalMinNightsSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ availabilitySettingsId: import("zod").ZodNumber;
4
+ startDate: import("zod").ZodDate;
5
+ endDate: import("zod").ZodDate;
6
+ minNights: import("zod").ZodNumber;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ id: number;
9
+ startDate: Date;
10
+ endDate: Date;
11
+ minNights: number;
12
+ availabilitySettingsId: number;
13
+ }, {
14
+ id: number;
15
+ startDate: Date;
16
+ endDate: Date;
17
+ minNights: number;
18
+ availabilitySettingsId: number;
19
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.seasonalMinNightsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.seasonalMinNightsSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ availabilitySettingsId: (0, zod_1.number)().int(),
8
+ startDate: (0, zod_1.date)(),
9
+ endDate: (0, zod_1.date)(),
10
+ minNights: (0, zod_1.number)().int(),
11
+ });
@@ -1468,6 +1468,10 @@ export declare const ChatThreadSchema: z.ZodObject<{
1468
1468
  photoUrl?: string | undefined;
1469
1469
  }>>;
1470
1470
  guestCoordinationActive: z.ZodOptional<z.ZodBoolean>;
1471
+ checkIn: z.ZodOptional<z.ZodType<import("../../helpers").Timestamp, z.ZodTypeDef, import("../../helpers").Timestamp>>;
1472
+ checkOut: z.ZodOptional<z.ZodType<import("../../helpers").Timestamp, z.ZodTypeDef, import("../../helpers").Timestamp>>;
1473
+ propertyImage: z.ZodOptional<z.ZodString>;
1474
+ propertyTitle: z.ZodOptional<z.ZodString>;
1471
1475
  }, "strip", z.ZodTypeAny, {
1472
1476
  type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
1473
1477
  createdAt: import("../../helpers").Timestamp;
@@ -1490,6 +1494,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
1490
1494
  photoUrl?: string | undefined;
1491
1495
  } | undefined;
1492
1496
  propertyId?: number | undefined;
1497
+ checkIn?: import("../../helpers").Timestamp | undefined;
1498
+ checkOut?: import("../../helpers").Timestamp | undefined;
1493
1499
  lastMessage?: {
1494
1500
  id: string;
1495
1501
  body: string;
@@ -1657,6 +1663,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
1657
1663
  photoUrl?: string | undefined;
1658
1664
  } | undefined;
1659
1665
  guestCoordinationActive?: boolean | undefined;
1666
+ propertyImage?: string | undefined;
1667
+ propertyTitle?: string | undefined;
1660
1668
  }, {
1661
1669
  type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
1662
1670
  createdAt: import("../../helpers").Timestamp;
@@ -1679,6 +1687,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
1679
1687
  photoUrl?: string | undefined;
1680
1688
  } | undefined;
1681
1689
  propertyId?: number | undefined;
1690
+ checkIn?: import("../../helpers").Timestamp | undefined;
1691
+ checkOut?: import("../../helpers").Timestamp | undefined;
1682
1692
  lastMessage?: {
1683
1693
  id: string;
1684
1694
  body: string;
@@ -1846,6 +1856,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
1846
1856
  photoUrl?: string | undefined;
1847
1857
  } | undefined;
1848
1858
  guestCoordinationActive?: boolean | undefined;
1859
+ propertyImage?: string | undefined;
1860
+ propertyTitle?: string | undefined;
1849
1861
  }>;
1850
1862
  export declare const MessageAutomationTemplateSchema: z.ZodObject<{
1851
1863
  id: z.ZodOptional<z.ZodString>;
@@ -121,6 +121,10 @@ exports.ChatThreadSchema = (0, zod_1.object)({
121
121
  lastName: true,
122
122
  })),
123
123
  guestCoordinationActive: (0, zod_1.optional)((0, zod_1.boolean)()),
124
+ checkIn: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
125
+ checkOut: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
126
+ propertyImage: (0, zod_1.optional)((0, zod_1.string)()),
127
+ propertyTitle: (0, zod_1.optional)((0, zod_1.string)())
124
128
  });
125
129
  exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
126
130
  id: (0, zod_1.optional)((0, zod_1.string)()),
@@ -1,6 +1,8 @@
1
1
  import { infer } from "zod";
2
2
  import { availabilitySettingsSchema } from "../../schemas/availability-settings";
3
3
  import { Property } from "../property";
4
+ import { SeasonalMinNights } from "../seasonal-min-nights";
4
5
  export interface AvailabilitySettings extends infer<typeof availabilitySettingsSchema> {
5
6
  property?: Property;
7
+ seasonalMinNights?: SeasonalMinNights[];
6
8
  }
@@ -109,4 +109,5 @@ export * from "./early-bird-discount";
109
109
  export * from "./pass-through-tax";
110
110
  export * from "./booking-settings";
111
111
  export * from "./availability-settings";
112
+ export * from "./seasonal-min-nights";
112
113
  export * from "./guest-verification";
@@ -125,4 +125,5 @@ __exportStar(require("./early-bird-discount"), exports);
125
125
  __exportStar(require("./pass-through-tax"), exports);
126
126
  __exportStar(require("./booking-settings"), exports);
127
127
  __exportStar(require("./availability-settings"), exports);
128
+ __exportStar(require("./seasonal-min-nights"), exports);
128
129
  __exportStar(require("./guest-verification"), exports);
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { seasonalMinNightsSchema } from "../../schemas/seasonal-min-nights";
3
+ import { AvailabilitySettings } from "../availability-settings";
4
+ export interface SeasonalMinNights extends infer<typeof seasonalMinNightsSchema> {
5
+ availabilitySettings?: AvailabilitySettings;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.46",
4
+ "version": "1.2.48",
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",