hububb-saas-shared 1.0.59 → 1.0.60

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,33 +1,34 @@
1
+ import { z } from "zod";
1
2
  import { PropertyType } from "../../types";
2
- export declare const propertySchema: import("zod").ZodObject<{
3
- id: import("zod").ZodNumber;
4
- title: import("zod").ZodString;
5
- description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
6
- nickname: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
7
- createdAt: import("zod").ZodDate;
8
- updatedAt: import("zod").ZodDate;
9
- userId: import("zod").ZodString;
10
- propertyType: import("zod").ZodNativeEnum<typeof PropertyType>;
11
- listingType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
12
- bedrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
13
- bathrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
14
- capacity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
15
- beds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
16
- checkInTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
17
- checkOutTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
18
- channexId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
19
- hububbId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
20
- channexRoomTypeId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
21
- minimumNights: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
22
- maximumNights: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
23
- area: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
24
- }, "strip", import("zod").ZodTypeAny, {
3
+ export declare const propertySchema: z.ZodObject<{
4
+ id: z.ZodNumber;
5
+ title: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ createdAt: z.ZodDate;
9
+ updatedAt: z.ZodDate;
10
+ userId: z.ZodString;
11
+ propertyType: z.ZodEnum<["HOUSE", "APARTMENT", "STUDIO", "HOTEL", "VILLA", "APARTMENT_BLOCK"]>;
12
+ listingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ bedrooms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ bathrooms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ beds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ checkInTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ checkOutTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ channexId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ hububbId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ channexRoomTypeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ minimumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ maximumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ }, "strip", z.ZodTypeAny, {
25
26
  id: number;
26
27
  title: string;
27
28
  createdAt: Date;
28
29
  updatedAt: Date;
29
30
  userId: string;
30
- propertyType: PropertyType;
31
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
31
32
  area?: number | null | undefined;
32
33
  description?: string | null | undefined;
33
34
  nickname?: string | null | undefined;
@@ -49,7 +50,7 @@ export declare const propertySchema: import("zod").ZodObject<{
49
50
  createdAt: Date;
50
51
  updatedAt: Date;
51
52
  userId: string;
52
- propertyType: PropertyType;
53
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
53
54
  area?: number | null | undefined;
54
55
  description?: string | null | undefined;
55
56
  nickname?: string | null | undefined;
@@ -66,26 +67,26 @@ export declare const propertySchema: import("zod").ZodObject<{
66
67
  minimumNights?: number | null | undefined;
67
68
  maximumNights?: number | null | undefined;
68
69
  }>;
69
- export declare const updatePropertySchema: import("zod").ZodObject<{
70
- propertyDetails: import("zod").ZodOptional<import("zod").ZodObject<{
71
- title: import("zod").ZodOptional<import("zod").ZodString>;
72
- description: import("zod").ZodOptional<import("zod").ZodString>;
73
- nickname: import("zod").ZodOptional<import("zod").ZodString>;
74
- propertyType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof PropertyType>>;
75
- listingType: import("zod").ZodOptional<import("zod").ZodString>;
76
- bedrooms: import("zod").ZodOptional<import("zod").ZodNumber>;
77
- bathrooms: import("zod").ZodOptional<import("zod").ZodNumber>;
78
- capacity: import("zod").ZodOptional<import("zod").ZodNumber>;
79
- beds: import("zod").ZodOptional<import("zod").ZodNumber>;
80
- checkInTime: import("zod").ZodOptional<import("zod").ZodString>;
81
- checkOutTime: import("zod").ZodOptional<import("zod").ZodString>;
82
- channexId: import("zod").ZodOptional<import("zod").ZodString>;
83
- airbnbId: import("zod").ZodOptional<import("zod").ZodString>;
84
- channexRoomTypeId: import("zod").ZodOptional<import("zod").ZodString>;
85
- minimumNights: import("zod").ZodOptional<import("zod").ZodNumber>;
86
- maximumNights: import("zod").ZodOptional<import("zod").ZodNumber>;
87
- area: import("zod").ZodOptional<import("zod").ZodNumber>;
88
- }, "strip", import("zod").ZodTypeAny, {
70
+ export declare const updatePropertySchema: z.ZodObject<{
71
+ propertyDetails: z.ZodOptional<z.ZodObject<{
72
+ title: z.ZodOptional<z.ZodString>;
73
+ description: z.ZodOptional<z.ZodString>;
74
+ nickname: z.ZodOptional<z.ZodString>;
75
+ propertyType: z.ZodOptional<z.ZodNativeEnum<typeof PropertyType>>;
76
+ listingType: z.ZodOptional<z.ZodString>;
77
+ bedrooms: z.ZodOptional<z.ZodNumber>;
78
+ bathrooms: z.ZodOptional<z.ZodNumber>;
79
+ capacity: z.ZodOptional<z.ZodNumber>;
80
+ beds: z.ZodOptional<z.ZodNumber>;
81
+ checkInTime: z.ZodOptional<z.ZodString>;
82
+ checkOutTime: z.ZodOptional<z.ZodString>;
83
+ channexId: z.ZodOptional<z.ZodString>;
84
+ airbnbId: z.ZodOptional<z.ZodString>;
85
+ channexRoomTypeId: z.ZodOptional<z.ZodString>;
86
+ minimumNights: z.ZodOptional<z.ZodNumber>;
87
+ maximumNights: z.ZodOptional<z.ZodNumber>;
88
+ area: z.ZodOptional<z.ZodNumber>;
89
+ }, "strip", z.ZodTypeAny, {
89
90
  area?: number | undefined;
90
91
  title?: string | undefined;
91
92
  description?: string | undefined;
@@ -122,13 +123,13 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
122
123
  maximumNights?: number | undefined;
123
124
  airbnbId?: string | undefined;
124
125
  }>>;
125
- metadata: import("zod").ZodOptional<import("zod").ZodObject<{
126
- wifiName: import("zod").ZodOptional<import("zod").ZodString>;
127
- wifiPassword: import("zod").ZodOptional<import("zod").ZodString>;
128
- checkInInstructions: import("zod").ZodOptional<import("zod").ZodString>;
129
- checkOutInstructions: import("zod").ZodOptional<import("zod").ZodString>;
130
- checkInAgent: import("zod").ZodOptional<import("zod").ZodString>;
131
- }, "strip", import("zod").ZodTypeAny, {
126
+ metadata: z.ZodOptional<z.ZodObject<{
127
+ wifiName: z.ZodOptional<z.ZodString>;
128
+ wifiPassword: z.ZodOptional<z.ZodString>;
129
+ checkInInstructions: z.ZodOptional<z.ZodString>;
130
+ checkOutInstructions: z.ZodOptional<z.ZodString>;
131
+ checkInAgent: z.ZodOptional<z.ZodString>;
132
+ }, "strip", z.ZodTypeAny, {
132
133
  wifiName?: string | undefined;
133
134
  wifiPassword?: string | undefined;
134
135
  checkInInstructions?: string | undefined;
@@ -141,17 +142,17 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
141
142
  checkOutInstructions?: string | undefined;
142
143
  checkInAgent?: string | undefined;
143
144
  }>>;
144
- price: import("zod").ZodOptional<import("zod").ZodObject<{
145
- guestsIncluded: import("zod").ZodOptional<import("zod").ZodNumber>;
146
- extraPersonFee: import("zod").ZodOptional<import("zod").ZodNumber>;
147
- basePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
148
- monthlyPriceFactor: import("zod").ZodOptional<import("zod").ZodNumber>;
149
- weeklyPriceFactor: import("zod").ZodOptional<import("zod").ZodNumber>;
150
- weekendBasePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
151
- securityDeposit: import("zod").ZodOptional<import("zod").ZodNumber>;
152
- currency: import("zod").ZodOptional<import("zod").ZodString>;
153
- cleaningFee: import("zod").ZodOptional<import("zod").ZodNumber>;
154
- }, "strip", import("zod").ZodTypeAny, {
145
+ price: z.ZodOptional<z.ZodObject<{
146
+ guestsIncluded: z.ZodOptional<z.ZodNumber>;
147
+ extraPersonFee: z.ZodOptional<z.ZodNumber>;
148
+ basePrice: z.ZodOptional<z.ZodNumber>;
149
+ monthlyPriceFactor: z.ZodOptional<z.ZodNumber>;
150
+ weeklyPriceFactor: z.ZodOptional<z.ZodNumber>;
151
+ weekendBasePrice: z.ZodOptional<z.ZodNumber>;
152
+ securityDeposit: z.ZodOptional<z.ZodNumber>;
153
+ currency: z.ZodOptional<z.ZodString>;
154
+ cleaningFee: z.ZodOptional<z.ZodNumber>;
155
+ }, "strip", z.ZodTypeAny, {
155
156
  currency?: string | undefined;
156
157
  basePrice?: number | undefined;
157
158
  guestsIncluded?: number | undefined;
@@ -172,15 +173,15 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
172
173
  securityDeposit?: number | undefined;
173
174
  cleaningFee?: number | undefined;
174
175
  }>>;
175
- address: import("zod").ZodOptional<import("zod").ZodObject<{
176
- street: import("zod").ZodOptional<import("zod").ZodString>;
177
- city: import("zod").ZodOptional<import("zod").ZodString>;
178
- state: import("zod").ZodOptional<import("zod").ZodString>;
179
- zipcode: import("zod").ZodOptional<import("zod").ZodString>;
180
- latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
181
- longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
182
- full: import("zod").ZodOptional<import("zod").ZodString>;
183
- }, "strip", import("zod").ZodTypeAny, {
176
+ address: z.ZodOptional<z.ZodObject<{
177
+ street: z.ZodOptional<z.ZodString>;
178
+ city: z.ZodOptional<z.ZodString>;
179
+ state: z.ZodOptional<z.ZodString>;
180
+ zipcode: z.ZodOptional<z.ZodString>;
181
+ latitude: z.ZodOptional<z.ZodNumber>;
182
+ longitude: z.ZodOptional<z.ZodNumber>;
183
+ full: z.ZodOptional<z.ZodString>;
184
+ }, "strip", z.ZodTypeAny, {
184
185
  state?: string | undefined;
185
186
  full?: string | undefined;
186
187
  street?: string | undefined;
@@ -197,8 +198,8 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
197
198
  latitude?: number | undefined;
198
199
  longitude?: number | undefined;
199
200
  }>>;
200
- amenities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
201
- }, "strip", import("zod").ZodTypeAny, {
201
+ amenities: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
202
+ }, "strip", z.ZodTypeAny, {
202
203
  address?: {
203
204
  state?: string | undefined;
204
205
  full?: string | undefined;
@@ -11,7 +11,14 @@ exports.propertySchema = (0, zod_1.object)({
11
11
  createdAt: (0, zod_1.date)(),
12
12
  updatedAt: (0, zod_1.date)(),
13
13
  userId: (0, zod_1.string)(),
14
- propertyType: (0, zod_1.nativeEnum)(types_1.PropertyType),
14
+ propertyType: zod_1.z.enum([
15
+ "HOUSE",
16
+ "APARTMENT",
17
+ "STUDIO",
18
+ "HOTEL",
19
+ "VILLA",
20
+ "APARTMENT_BLOCK",
21
+ ]),
15
22
  listingType: (0, zod_1.string)().nullish(),
16
23
  bedrooms: (0, zod_1.number)().int().nullish(),
17
24
  bathrooms: (0, zod_1.number)().int().nullish(),
@@ -344,7 +344,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
344
344
  createdAt: import("zod").ZodDate;
345
345
  updatedAt: import("zod").ZodDate;
346
346
  userId: import("zod").ZodString;
347
- propertyType: import("zod").ZodNativeEnum<typeof import("../..").PropertyType>;
347
+ propertyType: import("zod").ZodEnum<["HOUSE", "APARTMENT", "STUDIO", "HOTEL", "VILLA", "APARTMENT_BLOCK"]>;
348
348
  listingType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
349
349
  bedrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
350
350
  bathrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
@@ -364,7 +364,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
364
364
  createdAt: Date;
365
365
  updatedAt: Date;
366
366
  userId: string;
367
- propertyType: import("../..").PropertyType;
367
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
368
368
  area?: number | null | undefined;
369
369
  description?: string | null | undefined;
370
370
  nickname?: string | null | undefined;
@@ -386,7 +386,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
386
386
  createdAt: Date;
387
387
  updatedAt: Date;
388
388
  userId: string;
389
- propertyType: import("../..").PropertyType;
389
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
390
390
  area?: number | null | undefined;
391
391
  description?: string | null | undefined;
392
392
  nickname?: string | null | undefined;
@@ -416,7 +416,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
416
416
  createdAt: Date;
417
417
  updatedAt: Date;
418
418
  userId: string;
419
- propertyType: import("../..").PropertyType;
419
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
420
420
  area?: number | null | undefined;
421
421
  description?: string | null | undefined;
422
422
  nickname?: string | null | undefined;
@@ -447,7 +447,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
447
447
  createdAt: Date;
448
448
  updatedAt: Date;
449
449
  userId: string;
450
- propertyType: import("../..").PropertyType;
450
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
451
451
  area?: number | null | undefined;
452
452
  description?: string | null | undefined;
453
453
  nickname?: string | null | undefined;
@@ -546,7 +546,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
546
546
  createdAt: Date;
547
547
  updatedAt: Date;
548
548
  userId: string;
549
- propertyType: import("../..").PropertyType;
549
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
550
550
  area?: number | null | undefined;
551
551
  description?: string | null | undefined;
552
552
  nickname?: string | null | undefined;
@@ -645,7 +645,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
645
645
  createdAt: Date;
646
646
  updatedAt: Date;
647
647
  userId: string;
648
- propertyType: import("../..").PropertyType;
648
+ propertyType: "HOUSE" | "APARTMENT" | "STUDIO" | "HOTEL" | "VILLA" | "APARTMENT_BLOCK";
649
649
  area?: number | null | undefined;
650
650
  description?: string | null | undefined;
651
651
  nickname?: string | null | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.59",
4
+ "version": "1.0.60",
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",