hububb-saas-shared 1.2.54 → 1.2.56

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.
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { PassThroughTaxesCollectionType } from "../../types/enums";
3
2
  export declare const PriceSchema: z.ZodObject<{
4
3
  id: z.ZodNumber;
5
4
  propertyId: z.ZodNumber;
@@ -26,7 +25,7 @@ export declare const PriceSchema: z.ZodObject<{
26
25
  newListingPromotionPct: z.ZodNullable<z.ZodNumber>;
27
26
  newListingPromotionEndsAt: z.ZodNullable<z.ZodDate>;
28
27
  additionalDiscounts: z.ZodOptional<z.ZodUnknown>;
29
- passThroughTaxesCollectionType: z.ZodOptional<z.ZodNativeEnum<typeof PassThroughTaxesCollectionType>>;
28
+ passThroughTaxesCollectionType: z.ZodOptional<z.ZodEnum<["NO_AIRBNB_COLLECTED_TAX", "OVERRIDE_AIRBNB_COLLECTED_TAX", "STACKED_AIRBNB_COLLECTED_TAX", "INELIGIBLE", "UNDEFINED"]>>;
30
29
  }, "strip", z.ZodTypeAny, {
31
30
  currency: string;
32
31
  id: number;
@@ -53,7 +52,7 @@ export declare const PriceSchema: z.ZodObject<{
53
52
  newListingPromotionPct: number | null;
54
53
  newListingPromotionEndsAt: Date | null;
55
54
  additionalDiscounts?: unknown;
56
- passThroughTaxesCollectionType?: PassThroughTaxesCollectionType | undefined;
55
+ passThroughTaxesCollectionType?: "NO_AIRBNB_COLLECTED_TAX" | "OVERRIDE_AIRBNB_COLLECTED_TAX" | "STACKED_AIRBNB_COLLECTED_TAX" | "INELIGIBLE" | "UNDEFINED" | undefined;
57
56
  }, {
58
57
  currency: string;
59
58
  id: number;
@@ -80,5 +79,5 @@ export declare const PriceSchema: z.ZodObject<{
80
79
  newListingPromotionPct: number | null;
81
80
  newListingPromotionEndsAt: Date | null;
82
81
  additionalDiscounts?: unknown;
83
- passThroughTaxesCollectionType?: PassThroughTaxesCollectionType | undefined;
82
+ passThroughTaxesCollectionType?: "NO_AIRBNB_COLLECTED_TAX" | "OVERRIDE_AIRBNB_COLLECTED_TAX" | "STACKED_AIRBNB_COLLECTED_TAX" | "INELIGIBLE" | "UNDEFINED" | undefined;
84
83
  }>;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PriceSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const enums_1 = require("../../types/enums");
6
5
  exports.PriceSchema = (0, zod_1.object)({
7
6
  id: (0, zod_1.number)(),
8
7
  propertyId: (0, zod_1.number)(),
@@ -31,6 +30,12 @@ exports.PriceSchema = (0, zod_1.object)({
31
30
  newListingPromotionEndsAt: (0, zod_1.date)().nullable(),
32
31
  additionalDiscounts: zod_1.z.unknown().optional(),
33
32
  passThroughTaxesCollectionType: zod_1.z
34
- .nativeEnum(enums_1.PassThroughTaxesCollectionType)
33
+ .enum([
34
+ "NO_AIRBNB_COLLECTED_TAX",
35
+ "OVERRIDE_AIRBNB_COLLECTED_TAX",
36
+ "STACKED_AIRBNB_COLLECTED_TAX",
37
+ "INELIGIBLE",
38
+ "UNDEFINED",
39
+ ])
35
40
  .optional(),
36
41
  });
@@ -1529,6 +1529,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1529
1529
  propertyImage: z.ZodOptional<z.ZodString>;
1530
1530
  propertyTitle: z.ZodOptional<z.ZodString>;
1531
1531
  reservationStatus: z.ZodOptional<z.ZodString>;
1532
+ blockAIResponses: z.ZodOptional<z.ZodBoolean>;
1532
1533
  }, "strip", z.ZodTypeAny, {
1533
1534
  type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
1534
1535
  createdAt: import("../../helpers").Timestamp;
@@ -1731,6 +1732,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1731
1732
  propertyImage?: string | undefined;
1732
1733
  propertyTitle?: string | undefined;
1733
1734
  reservationStatus?: string | undefined;
1735
+ blockAIResponses?: boolean | undefined;
1734
1736
  }, {
1735
1737
  type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
1736
1738
  createdAt: import("../../helpers").Timestamp;
@@ -1933,6 +1935,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1933
1935
  propertyImage?: string | undefined;
1934
1936
  propertyTitle?: string | undefined;
1935
1937
  reservationStatus?: string | undefined;
1938
+ blockAIResponses?: boolean | undefined;
1936
1939
  }>;
1937
1940
  export declare const MessageAutomationTemplateSchema: z.ZodObject<{
1938
1941
  id: z.ZodOptional<z.ZodString>;
@@ -125,7 +125,8 @@ exports.ChatThreadSchema = (0, zod_1.object)({
125
125
  checkOut: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
126
126
  propertyImage: (0, zod_1.optional)((0, zod_1.string)()),
127
127
  propertyTitle: (0, zod_1.optional)((0, zod_1.string)()),
128
- reservationStatus: (0, zod_1.optional)((0, zod_1.string)())
128
+ reservationStatus: (0, zod_1.optional)((0, zod_1.string)()),
129
+ blockAIResponses: (0, zod_1.optional)((0, zod_1.boolean)())
129
130
  });
130
131
  exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
131
132
  id: (0, zod_1.optional)((0, zod_1.string)()),
@@ -1,4 +1,4 @@
1
- import { infer } from "zod";
1
+ import { infer, z } from "zod";
2
2
  import { Property } from "../property";
3
3
  import { ReservationCustomerSchema, ReservationFinanceSchema, ReservationSchema, ReservationServiceSchema, ReservationUnitAssignmentSchema } from "../../schemas";
4
4
  import { ReservationRoom } from "../room-reservation";
@@ -39,5 +39,4 @@ export interface ReservationService extends infer<typeof ReservationServiceSchem
39
39
  export interface ReservationCustomer extends infer<typeof ReservationCustomerSchema> {
40
40
  reservation?: Reservation;
41
41
  }
42
- export interface UpdateReservationSchema extends infer<typeof ReservationSchema> {
43
- }
42
+ export type UpdateReservationSchema = Partial<Omit<z.infer<typeof ReservationSchema>, "id" | "createdAt" | "updatedAt">>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.54",
4
+ "version": "1.2.56",
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",