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:
|
|
3
|
-
id:
|
|
4
|
-
title:
|
|
5
|
-
description:
|
|
6
|
-
nickname:
|
|
7
|
-
createdAt:
|
|
8
|
-
updatedAt:
|
|
9
|
-
userId:
|
|
10
|
-
propertyType:
|
|
11
|
-
listingType:
|
|
12
|
-
bedrooms:
|
|
13
|
-
bathrooms:
|
|
14
|
-
capacity:
|
|
15
|
-
beds:
|
|
16
|
-
checkInTime:
|
|
17
|
-
checkOutTime:
|
|
18
|
-
channexId:
|
|
19
|
-
hububbId:
|
|
20
|
-
channexRoomTypeId:
|
|
21
|
-
minimumNights:
|
|
22
|
-
maximumNights:
|
|
23
|
-
area:
|
|
24
|
-
}, "strip",
|
|
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:
|
|
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:
|
|
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:
|
|
70
|
-
propertyDetails:
|
|
71
|
-
title:
|
|
72
|
-
description:
|
|
73
|
-
nickname:
|
|
74
|
-
propertyType:
|
|
75
|
-
listingType:
|
|
76
|
-
bedrooms:
|
|
77
|
-
bathrooms:
|
|
78
|
-
capacity:
|
|
79
|
-
beds:
|
|
80
|
-
checkInTime:
|
|
81
|
-
checkOutTime:
|
|
82
|
-
channexId:
|
|
83
|
-
airbnbId:
|
|
84
|
-
channexRoomTypeId:
|
|
85
|
-
minimumNights:
|
|
86
|
-
maximumNights:
|
|
87
|
-
area:
|
|
88
|
-
}, "strip",
|
|
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:
|
|
126
|
-
wifiName:
|
|
127
|
-
wifiPassword:
|
|
128
|
-
checkInInstructions:
|
|
129
|
-
checkOutInstructions:
|
|
130
|
-
checkInAgent:
|
|
131
|
-
}, "strip",
|
|
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:
|
|
145
|
-
guestsIncluded:
|
|
146
|
-
extraPersonFee:
|
|
147
|
-
basePrice:
|
|
148
|
-
monthlyPriceFactor:
|
|
149
|
-
weeklyPriceFactor:
|
|
150
|
-
weekendBasePrice:
|
|
151
|
-
securityDeposit:
|
|
152
|
-
currency:
|
|
153
|
-
cleaningFee:
|
|
154
|
-
}, "strip",
|
|
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:
|
|
176
|
-
street:
|
|
177
|
-
city:
|
|
178
|
-
state:
|
|
179
|
-
zipcode:
|
|
180
|
-
latitude:
|
|
181
|
-
longitude:
|
|
182
|
-
full:
|
|
183
|
-
}, "strip",
|
|
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:
|
|
201
|
-
}, "strip",
|
|
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:
|
|
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").
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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;
|