hububb-saas-shared 1.2.46 → 1.2.47

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
+ });
@@ -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.47",
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",