house-types 2.9.45 → 2.9.47
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 +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export declare const ParsedHouseSchema: z.ZodObject<{
|
|
|
126
126
|
propertyGender: z.ZodOptional<z.ZodString>;
|
|
127
127
|
bathrooms: z.ZodOptional<z.ZodString>;
|
|
128
128
|
furnished: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
surface: z.ZodOptional<z.ZodString>;
|
|
129
130
|
image: z.ZodOptional<z.ZodString>;
|
|
130
131
|
createdAt: z.ZodString;
|
|
131
132
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -143,6 +144,7 @@ export declare const ParsedHouseSchema: z.ZodObject<{
|
|
|
143
144
|
roommates?: string | undefined;
|
|
144
145
|
propertyGender?: string | undefined;
|
|
145
146
|
bathrooms?: string | undefined;
|
|
147
|
+
surface?: string | undefined;
|
|
146
148
|
image?: string | undefined;
|
|
147
149
|
}, {
|
|
148
150
|
id: string;
|
|
@@ -159,12 +161,14 @@ export declare const ParsedHouseSchema: z.ZodObject<{
|
|
|
159
161
|
roommates?: string | undefined;
|
|
160
162
|
propertyGender?: string | undefined;
|
|
161
163
|
bathrooms?: string | undefined;
|
|
164
|
+
surface?: string | undefined;
|
|
162
165
|
image?: string | undefined;
|
|
163
166
|
}>;
|
|
164
167
|
export type ParsedHouse = z.infer<typeof ParsedHouseSchema>;
|
|
165
168
|
export declare const TransformedHouseSchema: z.ZodObject<{
|
|
166
169
|
price: z.ZodEffects<z.ZodString, number, string>;
|
|
167
170
|
propertyType: z.ZodEnum<["House", "Apartment", "Studio", "Room"]>;
|
|
171
|
+
surface: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
168
172
|
bedrooms: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
169
173
|
roommates: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
170
174
|
id: z.ZodString;
|
|
@@ -193,6 +197,7 @@ export declare const TransformedHouseSchema: z.ZodObject<{
|
|
|
193
197
|
roommates?: number | undefined;
|
|
194
198
|
propertyGender?: string | undefined;
|
|
195
199
|
bathrooms?: string | undefined;
|
|
200
|
+
surface?: number | undefined;
|
|
196
201
|
image?: string | undefined;
|
|
197
202
|
}, {
|
|
198
203
|
id: string;
|
|
@@ -209,6 +214,7 @@ export declare const TransformedHouseSchema: z.ZodObject<{
|
|
|
209
214
|
roommates?: string | undefined;
|
|
210
215
|
propertyGender?: string | undefined;
|
|
211
216
|
bathrooms?: string | undefined;
|
|
217
|
+
surface?: string | undefined;
|
|
212
218
|
image?: string | undefined;
|
|
213
219
|
}>;
|
|
214
220
|
export type TransformedHouse = z.infer<typeof TransformedHouseSchema>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAChF,eAAO,MAAM,MAAM,y1BAmET,CAAC;AAIX,eAAO,MAAM,OAAO,sCAA4B,CAAC;AACjD,eAAO,MAAM,iBAAiB,sCAA4B,CAAC;AAE3D,eAAO,MAAM,WAAW,mEASd,CAAC;AAEX,eAAO,MAAM,QAAQ,iCAAkC,CAAC;AAExD,eAAO,MAAM,MAAM,4xBAqGT,CAAC;AAEX,eAAO,MAAM,QAAQ,+EAYX,CAAC;AAEX,eAAO,MAAM,QAAQ,8CAA+C,CAAC;AAErE,eAAO,MAAM,SAAS,8CAA+C,CAAC;AAEtE,OAAO,EAAE,CAAC,EAAW,MAAM,KAAK,CAAC;AAsBjC,eAAO,MAAM,EAAE,aAAoB,CAAC;AAEpC,eAAO,MAAM,WAAW;;;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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;AAqB9C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -249,6 +249,7 @@ const parsedHouseSchema = {
|
|
|
249
249
|
propertyGender: z.string().optional(),
|
|
250
250
|
bathrooms: z.string().optional(),
|
|
251
251
|
furnished: z.boolean().optional(),
|
|
252
|
+
surface: z.string().optional(),
|
|
252
253
|
image: z.string().optional(),
|
|
253
254
|
createdAt: z.string().datetime(),
|
|
254
255
|
};
|
|
@@ -259,6 +260,13 @@ export const TransformedHouseSchema = z.object({
|
|
|
259
260
|
...parsedHouseSchema,
|
|
260
261
|
price: z.string().transform(Number),
|
|
261
262
|
propertyType: z.enum(PROPERTY_TYPES),
|
|
263
|
+
surface: z
|
|
264
|
+
.string()
|
|
265
|
+
.optional()
|
|
266
|
+
.transform((val) => {
|
|
267
|
+
const num = Number(val);
|
|
268
|
+
return Number.isNaN(num) ? undefined : num;
|
|
269
|
+
}),
|
|
262
270
|
bedrooms: z
|
|
263
271
|
.string()
|
|
264
272
|
.optional()
|