house-types 2.9.0 → 2.9.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 +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const propertyType: z.ZodEnum<["House", "Apartment", "Studio", "Room"]>;
|
|
|
4
4
|
export type PropertyType = z.infer<typeof propertyType>;
|
|
5
5
|
export declare const AlertSchema: z.ZodObject<{
|
|
6
6
|
city: z.ZodString;
|
|
7
|
-
radius: z.
|
|
7
|
+
radius: z.ZodNumber;
|
|
8
8
|
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
|
|
9
9
|
maxPrice: z.ZodEffects<z.ZodString, number, string>;
|
|
10
10
|
surface: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
@@ -30,7 +30,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
30
30
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
city: string;
|
|
33
|
-
radius:
|
|
33
|
+
radius: number;
|
|
34
34
|
maxPrice: string;
|
|
35
35
|
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
36
36
|
createdAt: string;
|
|
@@ -49,7 +49,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
49
49
|
lastNotified: z.ZodOptional<z.ZodString>;
|
|
50
50
|
alerts: z.ZodArray<z.ZodObject<{
|
|
51
51
|
city: z.ZodString;
|
|
52
|
-
radius: z.
|
|
52
|
+
radius: z.ZodNumber;
|
|
53
53
|
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
|
|
54
54
|
maxPrice: z.ZodEffects<z.ZodString, number, string>;
|
|
55
55
|
surface: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
@@ -75,7 +75,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
75
75
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
city: string;
|
|
78
|
-
radius:
|
|
78
|
+
radius: number;
|
|
79
79
|
maxPrice: string;
|
|
80
80
|
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
81
81
|
createdAt: string;
|
|
@@ -109,7 +109,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
109
109
|
email: string;
|
|
110
110
|
alerts: {
|
|
111
111
|
city: string;
|
|
112
|
-
radius:
|
|
112
|
+
radius: number;
|
|
113
113
|
maxPrice: string;
|
|
114
114
|
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
115
115
|
createdAt: string;
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export const PROPERTY_TYPES = ["House", "Apartment", "Studio", "Room"];
|
|
|
3
3
|
const propertyType = z.enum(PROPERTY_TYPES);
|
|
4
4
|
export const AlertSchema = z.object({
|
|
5
5
|
city: z.string(),
|
|
6
|
-
radius: z.
|
|
6
|
+
radius: z.number(),
|
|
7
7
|
propertyType: z.array(propertyType).optional(),
|
|
8
8
|
maxPrice: z.string().regex(/^\d+$/).transform(Number),
|
|
9
9
|
surface: z.string().regex(/^\d+$/).transform(Number).optional(),
|