house-types 2.5.3 → 2.5.4

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
@@ -93,10 +93,10 @@ export declare const HouseSchema: z.ZodObject<{
93
93
  availabilityDate: z.ZodOptional<z.ZodString>;
94
94
  propertyType: z.ZodEnum<["house", "apartment", "studio", "room"]>;
95
95
  bedrooms: z.ZodEffects<z.ZodString, number, string>;
96
- roommates: z.ZodEffects<z.ZodString, number, string>;
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"]>>;
99
- bathrooms: z.ZodEffects<z.ZodString, number, string>;
99
+ bathrooms: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
100
100
  furnished: z.ZodOptional<z.ZodBoolean>;
101
101
  image: z.ZodOptional<z.ZodString>;
102
102
  createdAt: z.ZodString;
@@ -106,13 +106,13 @@ export declare const HouseSchema: z.ZodObject<{
106
106
  id: string;
107
107
  price: number;
108
108
  bedrooms: number;
109
- roommates: number;
110
- bathrooms: number;
111
109
  createdAt: string;
112
110
  image?: string | undefined;
113
111
  availabilityDate?: string | undefined;
112
+ roommates?: number | undefined;
114
113
  gender?: "m" | "f" | "any" | undefined;
115
114
  propertyGender?: "m" | "f" | "mixed" | undefined;
115
+ bathrooms?: number | undefined;
116
116
  furnished?: boolean | undefined;
117
117
  }, {
118
118
  city: string;
@@ -120,13 +120,13 @@ export declare const HouseSchema: z.ZodObject<{
120
120
  id: string;
121
121
  price: string;
122
122
  bedrooms: string;
123
- roommates: string;
124
- bathrooms: string;
125
123
  createdAt: string;
126
124
  image?: string | undefined;
127
125
  availabilityDate?: string | undefined;
126
+ roommates?: string | undefined;
128
127
  gender?: "m" | "f" | "any" | undefined;
129
128
  propertyGender?: "m" | "f" | "mixed" | undefined;
129
+ bathrooms?: string | undefined;
130
130
  furnished?: boolean | undefined;
131
131
  }>;
132
132
  export type House = z.infer<typeof HouseSchema>;
package/dist/index.js CHANGED
@@ -29,10 +29,10 @@ export const HouseSchema = z.object({
29
29
  availabilityDate: z.string().datetime().optional(),
30
30
  propertyType,
31
31
  bedrooms: z.string().regex(/^\d+$/).transform(Number),
32
- roommates: z.string().regex(/^\d+$/).transform(Number),
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(),
35
- bathrooms: z.string().regex(/^\d+$/).transform(Number),
35
+ bathrooms: z.string().regex(/^\d+$/).transform(Number).optional(),
36
36
  furnished: z.boolean().optional(),
37
37
  image: z.string().optional(),
38
38
  createdAt: z.string().datetime(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "house-types",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",