house-types 2.8.0 → 2.9.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 +14 -9
- 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
|
@@ -13,11 +13,13 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
13
13
|
flatmates: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
flatmatesGender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Mixed"]>>;
|
|
15
15
|
gender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Other"]>>;
|
|
16
|
+
frequency: z.ZodEffects<z.ZodEnum<["5", "15", "60", "180", "360", "1440", "10080"]>, number, "5" | "15" | "60" | "180" | "360" | "1440" | "10080">;
|
|
16
17
|
createdAt: z.ZodString;
|
|
17
18
|
}, "strip", z.ZodTypeAny, {
|
|
18
19
|
city: string;
|
|
19
20
|
radius: number;
|
|
20
21
|
maxPrice: number;
|
|
22
|
+
frequency: number;
|
|
21
23
|
createdAt: string;
|
|
22
24
|
propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
23
25
|
surface?: number | undefined;
|
|
@@ -30,6 +32,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
30
32
|
city: string;
|
|
31
33
|
radius: string;
|
|
32
34
|
maxPrice: string;
|
|
35
|
+
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
33
36
|
createdAt: string;
|
|
34
37
|
propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
35
38
|
surface?: string | undefined;
|
|
@@ -42,10 +45,9 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
42
45
|
export type Alert = z.infer<typeof AlertSchema>;
|
|
43
46
|
export declare const UserSchema: z.ZodObject<{
|
|
44
47
|
notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
-
frequency: z.ZodEffects<z.ZodEnum<["5", "15", "60", "180", "360", "1440", "10080"]>, number, "5" | "15" | "60" | "180" | "360" | "1440" | "10080">;
|
|
46
48
|
email: z.ZodString;
|
|
47
49
|
lastNotified: z.ZodOptional<z.ZodString>;
|
|
48
|
-
|
|
50
|
+
alerts: z.ZodArray<z.ZodObject<{
|
|
49
51
|
city: z.ZodString;
|
|
50
52
|
radius: z.ZodEffects<z.ZodString, number, string>;
|
|
51
53
|
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
|
|
@@ -56,11 +58,13 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
56
58
|
flatmates: z.ZodOptional<z.ZodBoolean>;
|
|
57
59
|
flatmatesGender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Mixed"]>>;
|
|
58
60
|
gender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Other"]>>;
|
|
61
|
+
frequency: z.ZodEffects<z.ZodEnum<["5", "15", "60", "180", "360", "1440", "10080"]>, number, "5" | "15" | "60" | "180" | "360" | "1440" | "10080">;
|
|
59
62
|
createdAt: z.ZodString;
|
|
60
63
|
}, "strip", z.ZodTypeAny, {
|
|
61
64
|
city: string;
|
|
62
65
|
radius: number;
|
|
63
66
|
maxPrice: number;
|
|
67
|
+
frequency: number;
|
|
64
68
|
createdAt: string;
|
|
65
69
|
propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
66
70
|
surface?: number | undefined;
|
|
@@ -73,6 +77,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
73
77
|
city: string;
|
|
74
78
|
radius: string;
|
|
75
79
|
maxPrice: string;
|
|
80
|
+
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
76
81
|
createdAt: string;
|
|
77
82
|
propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
78
83
|
surface?: string | undefined;
|
|
@@ -81,15 +86,15 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
81
86
|
flatmates?: boolean | undefined;
|
|
82
87
|
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
83
88
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
84
|
-
}>;
|
|
89
|
+
}>, "many">;
|
|
85
90
|
}, "strip", z.ZodTypeAny, {
|
|
86
91
|
notificationsEnabled: boolean;
|
|
87
|
-
frequency: number;
|
|
88
92
|
email: string;
|
|
89
|
-
|
|
93
|
+
alerts: {
|
|
90
94
|
city: string;
|
|
91
95
|
radius: number;
|
|
92
96
|
maxPrice: number;
|
|
97
|
+
frequency: number;
|
|
93
98
|
createdAt: string;
|
|
94
99
|
propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
95
100
|
surface?: number | undefined;
|
|
@@ -98,15 +103,15 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
98
103
|
flatmates?: boolean | undefined;
|
|
99
104
|
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
100
105
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
101
|
-
};
|
|
106
|
+
}[];
|
|
102
107
|
lastNotified?: string | undefined;
|
|
103
108
|
}, {
|
|
104
|
-
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
105
109
|
email: string;
|
|
106
|
-
|
|
110
|
+
alerts: {
|
|
107
111
|
city: string;
|
|
108
112
|
radius: string;
|
|
109
113
|
maxPrice: string;
|
|
114
|
+
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
110
115
|
createdAt: string;
|
|
111
116
|
propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
|
|
112
117
|
surface?: string | undefined;
|
|
@@ -115,7 +120,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
115
120
|
flatmates?: boolean | undefined;
|
|
116
121
|
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
117
122
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
118
|
-
};
|
|
123
|
+
}[];
|
|
119
124
|
notificationsEnabled?: boolean | undefined;
|
|
120
125
|
lastNotified?: string | undefined;
|
|
121
126
|
}>;
|
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;AAExB,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAEhF,QAAA,MAAM,YAAY,qDAAyB,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAEhF,QAAA,MAAM,YAAY,qDAAyB,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAmB9C,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
|
@@ -12,16 +12,16 @@ export const AlertSchema = z.object({
|
|
|
12
12
|
flatmates: z.boolean().optional(),
|
|
13
13
|
flatmatesGender: z.enum(["Male", "Female", "Mixed"]).optional(),
|
|
14
14
|
gender: z.enum(["Male", "Female", "Other"]).optional(),
|
|
15
|
+
frequency: z
|
|
16
|
+
.enum(["5", "15", "60", "180", "360", "1440", "10080"])
|
|
17
|
+
.transform(Number),
|
|
15
18
|
createdAt: z.string().datetime(),
|
|
16
19
|
});
|
|
17
20
|
export const UserSchema = z.object({
|
|
18
21
|
notificationsEnabled: z.boolean().default(true),
|
|
19
|
-
frequency: z
|
|
20
|
-
.enum(["5", "15", "60", "180", "360", "1440", "10080"])
|
|
21
|
-
.transform(Number),
|
|
22
22
|
email: z.string().email(),
|
|
23
23
|
lastNotified: z.string().datetime().optional(),
|
|
24
|
-
|
|
24
|
+
alerts: z.array(AlertSchema),
|
|
25
25
|
});
|
|
26
26
|
const parsedHouseSchema = {
|
|
27
27
|
source: z.string(),
|