hububb-saas-shared 1.0.16 → 1.0.18
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.
|
@@ -196,7 +196,7 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
|
|
|
196
196
|
latitude?: number | undefined;
|
|
197
197
|
longitude?: number | undefined;
|
|
198
198
|
}>>;
|
|
199
|
-
amenities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").
|
|
199
|
+
amenities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
200
200
|
}, "strip", import("zod").ZodTypeAny, {
|
|
201
201
|
address?: {
|
|
202
202
|
state?: string | undefined;
|
|
@@ -244,7 +244,7 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
|
|
|
244
244
|
minimumNights?: number | undefined;
|
|
245
245
|
maximumNights?: number | undefined;
|
|
246
246
|
} | undefined;
|
|
247
|
-
amenities?:
|
|
247
|
+
amenities?: number[] | undefined;
|
|
248
248
|
}, {
|
|
249
249
|
address?: {
|
|
250
250
|
state?: string | undefined;
|
|
@@ -292,5 +292,5 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
|
|
|
292
292
|
minimumNights?: number | undefined;
|
|
293
293
|
maximumNights?: number | undefined;
|
|
294
294
|
} | undefined;
|
|
295
|
-
amenities?:
|
|
295
|
+
amenities?: number[] | undefined;
|
|
296
296
|
}>;
|
|
@@ -72,5 +72,5 @@ exports.updatePropertySchema = (0, zod_1.object)({
|
|
|
72
72
|
longitude: (0, zod_1.number)().int().optional(),
|
|
73
73
|
full: (0, zod_1.string)().optional(),
|
|
74
74
|
}).optional(),
|
|
75
|
-
amenities: (0, zod_1.
|
|
75
|
+
amenities: (0, zod_1.number)().array().optional(),
|
|
76
76
|
});
|
|
@@ -15,7 +15,11 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
15
15
|
reservations?: Reservation[];
|
|
16
16
|
serviceProperties?: ServiceProperty[];
|
|
17
17
|
images?: Image[];
|
|
18
|
-
amenities?:
|
|
18
|
+
amenities?: {
|
|
19
|
+
propertyId: number;
|
|
20
|
+
amenityId: number;
|
|
21
|
+
amenity?: Amenity;
|
|
22
|
+
}[];
|
|
19
23
|
address?: Address;
|
|
20
24
|
price?: Price;
|
|
21
25
|
metadata?: PropertyMetadata;
|