house-types 2.5.4 → 2.5.5

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 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.ZodEffects<z.ZodString, number, string>;
92
+ price: z.ZodNumber;
93
93
  availabilityDate: z.ZodOptional<z.ZodString>;
94
94
  propertyType: z.ZodEnum<["house", "apartment", "studio", "room"]>;
95
- bedrooms: z.ZodEffects<z.ZodString, number, string>;
95
+ bedrooms: z.ZodNumber;
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"]>>;
@@ -118,8 +118,8 @@ export declare const HouseSchema: z.ZodObject<{
118
118
  city: string;
119
119
  propertyType: "house" | "apartment" | "studio" | "room";
120
120
  id: string;
121
- price: string;
122
- bedrooms: string;
121
+ price: number;
122
+ bedrooms: number;
123
123
  createdAt: string;
124
124
  image?: string | undefined;
125
125
  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().regex(/^\d+$/).transform(Number),
28
+ price: z.number(),
29
29
  availabilityDate: z.string().datetime().optional(),
30
30
  propertyType,
31
- bedrooms: z.string().regex(/^\d+$/).transform(Number),
31
+ bedrooms: z.number(),
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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "house-types",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",