house-types 2.9.35 → 2.9.36

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
@@ -119,7 +119,7 @@ export declare const ParsedHouseSchema: z.ZodObject<{
119
119
  price: z.ZodString;
120
120
  availabilityDate: z.ZodOptional<z.ZodString>;
121
121
  propertyType: z.ZodString;
122
- bedrooms: z.ZodString;
122
+ bedrooms: z.ZodOptional<z.ZodString>;
123
123
  roommates: z.ZodOptional<z.ZodString>;
124
124
  gender: z.ZodOptional<z.ZodString>;
125
125
  propertyGender: z.ZodOptional<z.ZodString>;
@@ -134,10 +134,10 @@ export declare const ParsedHouseSchema: z.ZodObject<{
134
134
  source: string;
135
135
  price: string;
136
136
  propertyType: string;
137
- bedrooms: string;
138
137
  furnished?: boolean | undefined;
139
138
  gender?: string | undefined;
140
139
  availabilityDate?: string | undefined;
140
+ bedrooms?: string | undefined;
141
141
  roommates?: string | undefined;
142
142
  propertyGender?: string | undefined;
143
143
  bathrooms?: string | undefined;
@@ -149,10 +149,10 @@ export declare const ParsedHouseSchema: z.ZodObject<{
149
149
  source: string;
150
150
  price: string;
151
151
  propertyType: string;
152
- bedrooms: string;
153
152
  furnished?: boolean | undefined;
154
153
  gender?: string | undefined;
155
154
  availabilityDate?: string | undefined;
155
+ bedrooms?: string | undefined;
156
156
  roommates?: string | undefined;
157
157
  propertyGender?: string | undefined;
158
158
  bathrooms?: string | undefined;
package/dist/index.js CHANGED
@@ -194,13 +194,13 @@ export const UserSchema = z.object({
194
194
  lastNotified: z.string().datetime().optional(),
195
195
  });
196
196
  const parsedHouseSchema = {
197
- source: z.string(),
198
- id: z.string(),
199
- city: z.string(),
200
- price: z.string(),
197
+ source: z.string().nonempty(),
198
+ id: z.string().nonempty(),
199
+ city: z.string().nonempty(),
200
+ price: z.string().nonempty(),
201
201
  availabilityDate: z.string().datetime().optional(),
202
- propertyType: z.string(),
203
- bedrooms: z.string(),
202
+ propertyType: z.string().nonempty(),
203
+ bedrooms: z.string().optional(),
204
204
  roommates: z.string().optional(),
205
205
  gender: z.string().optional(),
206
206
  propertyGender: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "house-types",
3
- "version": "2.9.35",
3
+ "version": "2.9.36",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",