house-types 2.9.63 → 2.10.0
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/schemas.d.ts +125 -122
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +47 -47
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -103,59 +103,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
103
103
|
}>;
|
|
104
104
|
export type User = z.infer<typeof UserSchema>;
|
|
105
105
|
export declare const ParsedHouseSchema: z.ZodObject<{
|
|
106
|
-
id: z.ZodString;
|
|
107
|
-
city: z.ZodString;
|
|
108
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
109
|
-
address: z.ZodOptional<z.ZodString>;
|
|
110
|
-
price: z.ZodString;
|
|
111
|
-
availabilityDate: z.ZodOptional<z.ZodString>;
|
|
112
|
-
propertyType: z.ZodString;
|
|
113
|
-
bedrooms: z.ZodOptional<z.ZodString>;
|
|
114
|
-
roommates: z.ZodOptional<z.ZodString>;
|
|
115
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
116
|
-
propertyGender: z.ZodOptional<z.ZodString>;
|
|
117
|
-
bathrooms: z.ZodOptional<z.ZodString>;
|
|
118
|
-
furnished: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
surface: z.ZodOptional<z.ZodString>;
|
|
120
|
-
image: z.ZodOptional<z.ZodString>;
|
|
121
|
-
createdAt: z.ZodString;
|
|
122
|
-
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
id: string;
|
|
124
|
-
city: string;
|
|
125
|
-
createdAt: string;
|
|
126
|
-
price: string;
|
|
127
|
-
propertyType: string;
|
|
128
|
-
furnished?: boolean | undefined;
|
|
129
|
-
gender?: string | undefined;
|
|
130
|
-
postalCode?: string | undefined;
|
|
131
|
-
address?: string | undefined;
|
|
132
|
-
availabilityDate?: string | undefined;
|
|
133
|
-
bedrooms?: string | undefined;
|
|
134
|
-
roommates?: string | undefined;
|
|
135
|
-
propertyGender?: string | undefined;
|
|
136
|
-
bathrooms?: string | undefined;
|
|
137
|
-
surface?: string | undefined;
|
|
138
|
-
image?: string | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
id: string;
|
|
141
|
-
city: string;
|
|
142
|
-
createdAt: string;
|
|
143
|
-
price: string;
|
|
144
|
-
propertyType: string;
|
|
145
|
-
furnished?: boolean | undefined;
|
|
146
|
-
gender?: string | undefined;
|
|
147
|
-
postalCode?: string | undefined;
|
|
148
|
-
address?: string | undefined;
|
|
149
|
-
availabilityDate?: string | undefined;
|
|
150
|
-
bedrooms?: string | undefined;
|
|
151
|
-
roommates?: string | undefined;
|
|
152
|
-
propertyGender?: string | undefined;
|
|
153
|
-
bathrooms?: string | undefined;
|
|
154
|
-
surface?: string | undefined;
|
|
155
|
-
image?: string | undefined;
|
|
156
|
-
}>;
|
|
157
|
-
export type ParsedHouse = z.infer<typeof ParsedHouseSchema>;
|
|
158
|
-
export declare const parserHouseSchema: {
|
|
159
106
|
city: z.ZodString;
|
|
160
107
|
postalCode: z.ZodNullable<z.ZodString>;
|
|
161
108
|
addressWithoutCity: z.ZodNullable<z.ZodString>;
|
|
@@ -178,18 +125,64 @@ export declare const parserHouseSchema: {
|
|
|
178
125
|
pets: z.ZodNullable<z.ZodBoolean>;
|
|
179
126
|
garage: z.ZodNullable<z.ZodBoolean>;
|
|
180
127
|
gym: z.ZodNullable<z.ZodBoolean>;
|
|
181
|
-
}
|
|
182
|
-
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
city: string;
|
|
130
|
+
flatmatesGender: "Male" | "Female" | "Mixed" | null;
|
|
131
|
+
postalCode: string | null;
|
|
132
|
+
addressWithoutCity: string | null;
|
|
133
|
+
price: number;
|
|
134
|
+
immediatelyAvailable: boolean;
|
|
135
|
+
startDateIfNotImmediatelyAvailableISO8601: string | null;
|
|
136
|
+
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
137
|
+
bedrooms: number | null;
|
|
138
|
+
flatmatesIfShared: number | null;
|
|
139
|
+
listingRequiredGender: "Male" | "Female" | "Other" | null;
|
|
140
|
+
bathrooms: number | null;
|
|
141
|
+
furnishing: "Uncarpeted" | "Unfurnished" | "Furnished" | null;
|
|
142
|
+
surface: number | null;
|
|
143
|
+
seniorsOnly: boolean | null;
|
|
144
|
+
studentsOnly: boolean | null;
|
|
145
|
+
bathtub: boolean | null;
|
|
146
|
+
garden: boolean | null;
|
|
147
|
+
floorNumber: number | null;
|
|
148
|
+
pets: boolean | null;
|
|
149
|
+
garage: boolean | null;
|
|
150
|
+
gym: boolean | null;
|
|
151
|
+
}, {
|
|
152
|
+
city: string;
|
|
153
|
+
flatmatesGender: "Male" | "Female" | "Mixed" | null;
|
|
154
|
+
postalCode: string | null;
|
|
155
|
+
addressWithoutCity: string | null;
|
|
156
|
+
price: number;
|
|
157
|
+
immediatelyAvailable: boolean;
|
|
158
|
+
startDateIfNotImmediatelyAvailableISO8601: string | null;
|
|
159
|
+
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
160
|
+
bedrooms: number | null;
|
|
161
|
+
flatmatesIfShared: number | null;
|
|
162
|
+
listingRequiredGender: "Male" | "Female" | "Other" | null;
|
|
163
|
+
bathrooms: number | null;
|
|
164
|
+
furnishing: "Uncarpeted" | "Unfurnished" | "Furnished" | null;
|
|
165
|
+
surface: number | null;
|
|
166
|
+
seniorsOnly: boolean | null;
|
|
167
|
+
studentsOnly: boolean | null;
|
|
168
|
+
bathtub: boolean | null;
|
|
169
|
+
garden: boolean | null;
|
|
170
|
+
floorNumber: number | null;
|
|
171
|
+
pets: boolean | null;
|
|
172
|
+
garage: boolean | null;
|
|
173
|
+
gym: boolean | null;
|
|
174
|
+
}>;
|
|
175
|
+
export type ParserHouse = z.infer<typeof ParsedHouseSchema>;
|
|
176
|
+
export declare const TransformedHouseSchema: z.ZodUnion<[z.ZodObject<{
|
|
183
177
|
city: z.ZodString;
|
|
184
|
-
postalCode: z.
|
|
185
|
-
|
|
178
|
+
postalCode: z.ZodString;
|
|
179
|
+
address: z.ZodNullable<z.ZodString>;
|
|
186
180
|
price: z.ZodNumber;
|
|
187
|
-
|
|
188
|
-
startDateIfNotImmediatelyAvailableISO8601: z.ZodNullable<z.ZodString>;
|
|
181
|
+
availability: z.ZodNullable<z.ZodString>;
|
|
189
182
|
propertyType: z.ZodEnum<["House", "Apartment", "Studio", "Room"]>;
|
|
190
183
|
bedrooms: z.ZodNullable<z.ZodNumber>;
|
|
191
|
-
|
|
192
|
-
|
|
184
|
+
flatmates: z.ZodNullable<z.ZodNumber>;
|
|
185
|
+
gender: z.ZodNullable<z.ZodEnum<["Male", "Female", "Other"]>>;
|
|
193
186
|
flatmatesGender: z.ZodNullable<z.ZodEnum<["Male", "Female", "Mixed"]>>;
|
|
194
187
|
bathrooms: z.ZodNullable<z.ZodNumber>;
|
|
195
188
|
furnishing: z.ZodNullable<z.ZodEnum<["Uncarpeted", "Unfurnished", "Furnished"]>>;
|
|
@@ -205,18 +198,14 @@ export declare const ParserHouseSchema: z.ZodObject<{
|
|
|
205
198
|
}, "strip", z.ZodTypeAny, {
|
|
206
199
|
city: string;
|
|
207
200
|
flatmatesGender: "Male" | "Female" | "Mixed" | null;
|
|
208
|
-
|
|
201
|
+
gender: "Male" | "Female" | "Other" | null;
|
|
202
|
+
postalCode: string;
|
|
209
203
|
price: number;
|
|
210
204
|
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
211
205
|
bedrooms: number | null;
|
|
212
206
|
bathrooms: number | null;
|
|
213
|
-
surface: number | null;
|
|
214
|
-
addressWithoutCity: string | null;
|
|
215
|
-
immediatelyAvailable: boolean;
|
|
216
|
-
startDateIfNotImmediatelyAvailableISO8601: string | null;
|
|
217
|
-
flatmatesIfShared: number | null;
|
|
218
|
-
listingRequiredGender: "Male" | "Female" | "Other" | null;
|
|
219
207
|
furnishing: "Uncarpeted" | "Unfurnished" | "Furnished" | null;
|
|
208
|
+
surface: number | null;
|
|
220
209
|
seniorsOnly: boolean | null;
|
|
221
210
|
studentsOnly: boolean | null;
|
|
222
211
|
bathtub: boolean | null;
|
|
@@ -225,21 +214,20 @@ export declare const ParserHouseSchema: z.ZodObject<{
|
|
|
225
214
|
pets: boolean | null;
|
|
226
215
|
garage: boolean | null;
|
|
227
216
|
gym: boolean | null;
|
|
217
|
+
address: string | null;
|
|
218
|
+
availability: string | null;
|
|
219
|
+
flatmates: number | null;
|
|
228
220
|
}, {
|
|
229
221
|
city: string;
|
|
230
222
|
flatmatesGender: "Male" | "Female" | "Mixed" | null;
|
|
231
|
-
|
|
223
|
+
gender: "Male" | "Female" | "Other" | null;
|
|
224
|
+
postalCode: string;
|
|
232
225
|
price: number;
|
|
233
226
|
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
234
227
|
bedrooms: number | null;
|
|
235
228
|
bathrooms: number | null;
|
|
236
|
-
surface: number | null;
|
|
237
|
-
addressWithoutCity: string | null;
|
|
238
|
-
immediatelyAvailable: boolean;
|
|
239
|
-
startDateIfNotImmediatelyAvailableISO8601: string | null;
|
|
240
|
-
flatmatesIfShared: number | null;
|
|
241
|
-
listingRequiredGender: "Male" | "Female" | "Other" | null;
|
|
242
229
|
furnishing: "Uncarpeted" | "Unfurnished" | "Furnished" | null;
|
|
230
|
+
surface: number | null;
|
|
243
231
|
seniorsOnly: boolean | null;
|
|
244
232
|
studentsOnly: boolean | null;
|
|
245
233
|
bathtub: boolean | null;
|
|
@@ -248,59 +236,74 @@ export declare const ParserHouseSchema: z.ZodObject<{
|
|
|
248
236
|
pets: boolean | null;
|
|
249
237
|
garage: boolean | null;
|
|
250
238
|
gym: boolean | null;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
propertyType: z.ZodEnum<["House", "Apartment", "Studio", "Room"]>;
|
|
256
|
-
surface: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
257
|
-
bedrooms: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
258
|
-
roommates: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
259
|
-
id: z.ZodString;
|
|
239
|
+
address: string | null;
|
|
240
|
+
availability: string | null;
|
|
241
|
+
flatmates: number | null;
|
|
242
|
+
}>, z.ZodObject<{
|
|
260
243
|
city: z.ZodString;
|
|
261
|
-
postalCode: z.
|
|
262
|
-
address: z.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
244
|
+
postalCode: z.ZodNullable<z.ZodString>;
|
|
245
|
+
address: z.ZodString;
|
|
246
|
+
price: z.ZodNumber;
|
|
247
|
+
availability: z.ZodNullable<z.ZodString>;
|
|
248
|
+
propertyType: z.ZodEnum<["House", "Apartment", "Studio", "Room"]>;
|
|
249
|
+
bedrooms: z.ZodNullable<z.ZodNumber>;
|
|
250
|
+
flatmates: z.ZodNullable<z.ZodNumber>;
|
|
251
|
+
gender: z.ZodNullable<z.ZodEnum<["Male", "Female", "Other"]>>;
|
|
252
|
+
flatmatesGender: z.ZodNullable<z.ZodEnum<["Male", "Female", "Mixed"]>>;
|
|
253
|
+
bathrooms: z.ZodNullable<z.ZodNumber>;
|
|
254
|
+
furnishing: z.ZodNullable<z.ZodEnum<["Uncarpeted", "Unfurnished", "Furnished"]>>;
|
|
255
|
+
surface: z.ZodNullable<z.ZodNumber>;
|
|
256
|
+
seniorsOnly: z.ZodNullable<z.ZodBoolean>;
|
|
257
|
+
studentsOnly: z.ZodNullable<z.ZodBoolean>;
|
|
258
|
+
bathtub: z.ZodNullable<z.ZodBoolean>;
|
|
259
|
+
garden: z.ZodNullable<z.ZodBoolean>;
|
|
260
|
+
floorNumber: z.ZodNullable<z.ZodNumber>;
|
|
261
|
+
pets: z.ZodNullable<z.ZodBoolean>;
|
|
262
|
+
garage: z.ZodNullable<z.ZodBoolean>;
|
|
263
|
+
gym: z.ZodNullable<z.ZodBoolean>;
|
|
270
264
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
id: string;
|
|
272
265
|
city: string;
|
|
273
|
-
|
|
266
|
+
flatmatesGender: "Male" | "Female" | "Mixed" | null;
|
|
267
|
+
gender: "Male" | "Female" | "Other" | null;
|
|
268
|
+
postalCode: string | null;
|
|
274
269
|
price: number;
|
|
275
270
|
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
271
|
+
bedrooms: number | null;
|
|
272
|
+
bathrooms: number | null;
|
|
273
|
+
furnishing: "Uncarpeted" | "Unfurnished" | "Furnished" | null;
|
|
274
|
+
surface: number | null;
|
|
275
|
+
seniorsOnly: boolean | null;
|
|
276
|
+
studentsOnly: boolean | null;
|
|
277
|
+
bathtub: boolean | null;
|
|
278
|
+
garden: boolean | null;
|
|
279
|
+
floorNumber: number | null;
|
|
280
|
+
pets: boolean | null;
|
|
281
|
+
garage: boolean | null;
|
|
282
|
+
gym: boolean | null;
|
|
283
|
+
address: string;
|
|
284
|
+
availability: string | null;
|
|
285
|
+
flatmates: number | null;
|
|
287
286
|
}, {
|
|
288
|
-
id: string;
|
|
289
287
|
city: string;
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
flatmatesGender: "Male" | "Female" | "Mixed" | null;
|
|
289
|
+
gender: "Male" | "Female" | "Other" | null;
|
|
290
|
+
postalCode: string | null;
|
|
291
|
+
price: number;
|
|
292
292
|
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
293
|
+
bedrooms: number | null;
|
|
294
|
+
bathrooms: number | null;
|
|
295
|
+
furnishing: "Uncarpeted" | "Unfurnished" | "Furnished" | null;
|
|
296
|
+
surface: number | null;
|
|
297
|
+
seniorsOnly: boolean | null;
|
|
298
|
+
studentsOnly: boolean | null;
|
|
299
|
+
bathtub: boolean | null;
|
|
300
|
+
garden: boolean | null;
|
|
301
|
+
floorNumber: number | null;
|
|
302
|
+
pets: boolean | null;
|
|
303
|
+
garage: boolean | null;
|
|
304
|
+
gym: boolean | null;
|
|
305
|
+
address: string;
|
|
306
|
+
availability: string | null;
|
|
307
|
+
flatmates: number | null;
|
|
308
|
+
}>]>;
|
|
306
309
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAW,MAAM,KAAK,CAAC;AAkCjC,eAAO,MAAM,EAAE,aAAoB,CAAC;AAEpC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBF,CAAC;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBR,CAAC;AAEvB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,UAAU;;;;;;;;;;;;EAIrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAW,MAAM,KAAK,CAAC;AAkCjC,eAAO,MAAM,EAAE,aAAoB,CAAC;AAEpC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBF,CAAC;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBR,CAAC;AAEvB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,UAAU;;;;;;;;;;;;EAIrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+CjC,CAAC"}
|
package/dist/schemas.js
CHANGED
|
@@ -36,28 +36,7 @@ export const UserSchema = z.object({
|
|
|
36
36
|
email: z.string().email(),
|
|
37
37
|
lastNotified: z.string().datetime().optional(),
|
|
38
38
|
});
|
|
39
|
-
const parsedHouseSchema = {
|
|
40
|
-
id: z.string().nonempty(),
|
|
41
|
-
city: z.string().nonempty(),
|
|
42
|
-
postalCode: z.string().nonempty().optional(),
|
|
43
|
-
address: z.string().optional(),
|
|
44
|
-
price: z.string().nonempty(),
|
|
45
|
-
availabilityDate: z.string().datetime().optional(),
|
|
46
|
-
propertyType: z.string().nonempty(),
|
|
47
|
-
bedrooms: z.string().optional(),
|
|
48
|
-
roommates: z.string().optional(),
|
|
49
|
-
gender: z.string().optional(),
|
|
50
|
-
propertyGender: z.string().optional(),
|
|
51
|
-
bathrooms: z.string().optional(),
|
|
52
|
-
furnished: z.boolean().optional(),
|
|
53
|
-
surface: z.string().optional(),
|
|
54
|
-
image: z.string().optional(),
|
|
55
|
-
createdAt: z.string().datetime(),
|
|
56
|
-
};
|
|
57
39
|
export const ParsedHouseSchema = z.object({
|
|
58
|
-
...parsedHouseSchema,
|
|
59
|
-
});
|
|
60
|
-
export const parserHouseSchema = {
|
|
61
40
|
city: z.string().nonempty(),
|
|
62
41
|
postalCode: z.string().nonempty().nullable(),
|
|
63
42
|
addressWithoutCity: z.string().nullable(),
|
|
@@ -80,31 +59,52 @@ export const parserHouseSchema = {
|
|
|
80
59
|
pets: z.boolean().nullable(),
|
|
81
60
|
garage: z.boolean().nullable(),
|
|
82
61
|
gym: z.boolean().nullable(),
|
|
83
|
-
};
|
|
84
|
-
export const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
.string()
|
|
91
|
-
.
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
.
|
|
98
|
-
.
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
|
|
62
|
+
});
|
|
63
|
+
export const TransformedHouseSchema = z.union([
|
|
64
|
+
z.object({
|
|
65
|
+
city: z.string().nonempty(),
|
|
66
|
+
postalCode: z.string().nonempty(),
|
|
67
|
+
address: z.string().nullable(),
|
|
68
|
+
price: z.number(),
|
|
69
|
+
availability: z.string().datetime().nullable(),
|
|
70
|
+
propertyType: z.enum(PROPERTY_TYPES),
|
|
71
|
+
bedrooms: z.number().nullable(),
|
|
72
|
+
flatmates: z.number().nullable(),
|
|
73
|
+
gender: z.enum(GENDERS).nullable(),
|
|
74
|
+
flatmatesGender: z.enum(FLATMATES_GENDERS).nullable(),
|
|
75
|
+
bathrooms: z.number().nullable(),
|
|
76
|
+
furnishing: z.enum(["Uncarpeted", "Unfurnished", "Furnished"]).nullable(),
|
|
77
|
+
surface: z.number().nullable(),
|
|
78
|
+
seniorsOnly: z.boolean().nullable(),
|
|
79
|
+
studentsOnly: z.boolean().nullable(),
|
|
80
|
+
bathtub: z.boolean().nullable(),
|
|
81
|
+
garden: z.boolean().nullable(),
|
|
82
|
+
floorNumber: z.number().nullable(),
|
|
83
|
+
pets: z.boolean().nullable(),
|
|
84
|
+
garage: z.boolean().nullable(),
|
|
85
|
+
gym: z.boolean().nullable(),
|
|
102
86
|
}),
|
|
103
|
-
|
|
104
|
-
.string()
|
|
105
|
-
.
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
|
|
87
|
+
z.object({
|
|
88
|
+
city: z.string().nonempty(),
|
|
89
|
+
postalCode: z.string().nonempty().nullable(),
|
|
90
|
+
address: z.string(),
|
|
91
|
+
price: z.number(),
|
|
92
|
+
availability: z.string().datetime().nullable(),
|
|
93
|
+
propertyType: z.enum(PROPERTY_TYPES),
|
|
94
|
+
bedrooms: z.number().nullable(),
|
|
95
|
+
flatmates: z.number().nullable(),
|
|
96
|
+
gender: z.enum(GENDERS).nullable(),
|
|
97
|
+
flatmatesGender: z.enum(FLATMATES_GENDERS).nullable(),
|
|
98
|
+
bathrooms: z.number().nullable(),
|
|
99
|
+
furnishing: z.enum(["Uncarpeted", "Unfurnished", "Furnished"]).nullable(),
|
|
100
|
+
surface: z.number().nullable(),
|
|
101
|
+
seniorsOnly: z.boolean().nullable(),
|
|
102
|
+
studentsOnly: z.boolean().nullable(),
|
|
103
|
+
bathtub: z.boolean().nullable(),
|
|
104
|
+
garden: z.boolean().nullable(),
|
|
105
|
+
floorNumber: z.number().nullable(),
|
|
106
|
+
pets: z.boolean().nullable(),
|
|
107
|
+
garage: z.boolean().nullable(),
|
|
108
|
+
gym: z.boolean().nullable(),
|
|
109
109
|
}),
|
|
110
|
-
|
|
110
|
+
]);
|