house-types 2.5.0 → 2.5.2
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 +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,19 +4,19 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
4
4
|
maxPrice: z.ZodEffects<z.ZodString, number, string>;
|
|
5
5
|
minBedrooms: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
6
6
|
furnishedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["house", "apartment", "studio", "
|
|
7
|
+
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["house", "apartment", "studio", "room"]>, "many">>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
city: string;
|
|
10
10
|
maxPrice: number;
|
|
11
11
|
minBedrooms?: number | undefined;
|
|
12
12
|
furnishedOnly?: boolean | undefined;
|
|
13
|
-
propertyType?: ("house" | "apartment" | "studio" | "
|
|
13
|
+
propertyType?: ("house" | "apartment" | "studio" | "room")[] | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
city: string;
|
|
16
16
|
maxPrice: string;
|
|
17
17
|
minBedrooms?: string | undefined;
|
|
18
18
|
furnishedOnly?: boolean | undefined;
|
|
19
|
-
propertyType?: ("house" | "apartment" | "studio" | "
|
|
19
|
+
propertyType?: ("house" | "apartment" | "studio" | "room")[] | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export type Alert = z.infer<typeof AlertSchema>;
|
|
22
22
|
export declare const UserSchema: z.ZodObject<{
|
|
@@ -29,19 +29,19 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
29
29
|
maxPrice: z.ZodEffects<z.ZodString, number, string>;
|
|
30
30
|
minBedrooms: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
31
31
|
furnishedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["house", "apartment", "studio", "
|
|
32
|
+
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["house", "apartment", "studio", "room"]>, "many">>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
city: string;
|
|
35
35
|
maxPrice: number;
|
|
36
36
|
minBedrooms?: number | undefined;
|
|
37
37
|
furnishedOnly?: boolean | undefined;
|
|
38
|
-
propertyType?: ("house" | "apartment" | "studio" | "
|
|
38
|
+
propertyType?: ("house" | "apartment" | "studio" | "room")[] | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
city: string;
|
|
41
41
|
maxPrice: string;
|
|
42
42
|
minBedrooms?: string | undefined;
|
|
43
43
|
furnishedOnly?: boolean | undefined;
|
|
44
|
-
propertyType?: ("house" | "apartment" | "studio" | "
|
|
44
|
+
propertyType?: ("house" | "apartment" | "studio" | "room")[] | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
notificationsEnabled: boolean;
|
|
@@ -52,7 +52,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
52
52
|
maxPrice: number;
|
|
53
53
|
minBedrooms?: number | undefined;
|
|
54
54
|
furnishedOnly?: boolean | undefined;
|
|
55
|
-
propertyType?: ("house" | "apartment" | "studio" | "
|
|
55
|
+
propertyType?: ("house" | "apartment" | "studio" | "room")[] | undefined;
|
|
56
56
|
};
|
|
57
57
|
lastNotified?: string | undefined;
|
|
58
58
|
}, {
|
|
@@ -63,7 +63,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
63
63
|
maxPrice: string;
|
|
64
64
|
minBedrooms?: string | undefined;
|
|
65
65
|
furnishedOnly?: boolean | undefined;
|
|
66
|
-
propertyType?: ("house" | "apartment" | "studio" | "
|
|
66
|
+
propertyType?: ("house" | "apartment" | "studio" | "room")[] | undefined;
|
|
67
67
|
};
|
|
68
68
|
notificationsEnabled?: boolean | undefined;
|
|
69
69
|
lastNotified?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export const AlertSchema = z.object({
|
|
|
5
5
|
minBedrooms: z.string().regex(/^\d+$/).transform(Number).optional(),
|
|
6
6
|
furnishedOnly: z.boolean().optional(),
|
|
7
7
|
propertyType: z
|
|
8
|
-
.array(z.enum(["house", "apartment", "studio", "
|
|
8
|
+
.array(z.enum(["house", "apartment", "studio", "room"]))
|
|
9
9
|
.optional(),
|
|
10
10
|
});
|
|
11
11
|
export const UserSchema = z.object({
|