house-types 2.6.0 → 2.6.1
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 +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
69
69
|
lastNotified?: string | undefined;
|
|
70
70
|
}>;
|
|
71
71
|
export type User = z.infer<typeof UserSchema>;
|
|
72
|
-
export declare const
|
|
72
|
+
export declare const ParsedHouseSchema: z.ZodObject<{
|
|
73
73
|
id: z.ZodString;
|
|
74
74
|
city: z.ZodString;
|
|
75
75
|
price: z.ZodString;
|
|
@@ -112,7 +112,7 @@ export declare const ParseHouseSchema: z.ZodObject<{
|
|
|
112
112
|
furnished?: boolean | undefined;
|
|
113
113
|
image?: string | undefined;
|
|
114
114
|
}>;
|
|
115
|
-
export type
|
|
115
|
+
export type ParsedHouse = z.infer<typeof ParsedHouseSchema>;
|
|
116
116
|
export declare const TransformedHouseSchema: z.ZodObject<{
|
|
117
117
|
price: z.ZodNumber;
|
|
118
118
|
propertyType: z.ZodEnum<["house", "apartment", "studio", "room"]>;
|
|
@@ -156,5 +156,5 @@ export declare const TransformedHouseSchema: z.ZodObject<{
|
|
|
156
156
|
furnished?: boolean | undefined;
|
|
157
157
|
image?: string | undefined;
|
|
158
158
|
}>;
|
|
159
|
-
export type
|
|
159
|
+
export type TransformedHouse = z.infer<typeof TransformedHouseSchema>;
|
|
160
160
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;EAMtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAkB9C,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;EAMtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAkB9C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export const UserSchema = z.object({
|
|
|
16
16
|
lastNotified: z.string().datetime().optional(),
|
|
17
17
|
alert: AlertSchema,
|
|
18
18
|
});
|
|
19
|
-
const
|
|
19
|
+
const parsedHouseSchema = {
|
|
20
20
|
id: z.string(),
|
|
21
21
|
city: z.string(),
|
|
22
22
|
price: z.string(),
|
|
@@ -31,11 +31,11 @@ const parseHouseSchema = {
|
|
|
31
31
|
image: z.string().optional(),
|
|
32
32
|
createdAt: z.string().datetime(),
|
|
33
33
|
};
|
|
34
|
-
export const
|
|
35
|
-
...
|
|
34
|
+
export const ParsedHouseSchema = z.object({
|
|
35
|
+
...parsedHouseSchema
|
|
36
36
|
});
|
|
37
37
|
export const TransformedHouseSchema = z.object({
|
|
38
|
-
...
|
|
38
|
+
...parsedHouseSchema,
|
|
39
39
|
price: z.number(),
|
|
40
40
|
propertyType,
|
|
41
41
|
bedrooms: z.number(),
|