house-types 2.5.4 → 2.5.6
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.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -89,10 +89,10 @@ export type RawHouse = z.infer<typeof RawHouseSchema>;
|
|
|
89
89
|
export declare const HouseSchema: z.ZodObject<{
|
|
90
90
|
id: z.ZodString;
|
|
91
91
|
city: z.ZodString;
|
|
92
|
-
price: z.
|
|
92
|
+
price: z.ZodString;
|
|
93
93
|
availabilityDate: z.ZodOptional<z.ZodString>;
|
|
94
94
|
propertyType: z.ZodEnum<["house", "apartment", "studio", "room"]>;
|
|
95
|
-
bedrooms: z.
|
|
95
|
+
bedrooms: z.ZodString;
|
|
96
96
|
roommates: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
97
97
|
gender: z.ZodOptional<z.ZodEnum<["m", "f", "any"]>>;
|
|
98
98
|
propertyGender: z.ZodOptional<z.ZodEnum<["m", "f", "mixed"]>>;
|
|
@@ -104,8 +104,8 @@ export declare const HouseSchema: z.ZodObject<{
|
|
|
104
104
|
city: string;
|
|
105
105
|
propertyType: "house" | "apartment" | "studio" | "room";
|
|
106
106
|
id: string;
|
|
107
|
-
price:
|
|
108
|
-
bedrooms:
|
|
107
|
+
price: string;
|
|
108
|
+
bedrooms: string;
|
|
109
109
|
createdAt: string;
|
|
110
110
|
image?: string | undefined;
|
|
111
111
|
availabilityDate?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -25,10 +25,10 @@ export const RawHouseSchema = z.object({
|
|
|
25
25
|
export const HouseSchema = z.object({
|
|
26
26
|
id: z.string(),
|
|
27
27
|
city: z.string(),
|
|
28
|
-
price: z.string()
|
|
28
|
+
price: z.string(),
|
|
29
29
|
availabilityDate: z.string().datetime().optional(),
|
|
30
30
|
propertyType,
|
|
31
|
-
bedrooms: z.string()
|
|
31
|
+
bedrooms: z.string(),
|
|
32
32
|
roommates: z.string().regex(/^\d+$/).transform(Number).optional(),
|
|
33
33
|
gender: z.enum(["m", "f", "any"]).optional(),
|
|
34
34
|
propertyGender: z.enum(["m", "f", "mixed"]).optional(),
|