house-types 2.5.5 → 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 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.ZodNumber;
92
+ price: z.ZodString;
93
93
  availabilityDate: z.ZodOptional<z.ZodString>;
94
94
  propertyType: z.ZodEnum<["house", "apartment", "studio", "room"]>;
95
- bedrooms: z.ZodNumber;
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: number;
108
- bedrooms: number;
107
+ price: string;
108
+ bedrooms: string;
109
109
  createdAt: string;
110
110
  image?: string | undefined;
111
111
  availabilityDate?: string | undefined;
@@ -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: number;
122
- bedrooms: number;
121
+ price: string;
122
+ bedrooms: string;
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.number(),
28
+ price: z.string(),
29
29
  availabilityDate: z.string().datetime().optional(),
30
30
  propertyType,
31
- bedrooms: z.number(),
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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "house-types",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",