house-types 2.1.0 → 2.2.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 +10 -10
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const AlertSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
city: z.
|
|
4
|
+
city: z.ZodString;
|
|
5
5
|
maxPrice: z.ZodEffects<z.ZodString, number, string>;
|
|
6
6
|
minBedrooms: z.ZodEffects<z.ZodString, number, string>;
|
|
7
7
|
furnishedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["house", "apartment", "studio", "shared-room"]>, "many">>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: string;
|
|
11
|
+
city: string;
|
|
11
12
|
maxPrice: number;
|
|
12
13
|
minBedrooms: number;
|
|
13
|
-
city?: string | undefined;
|
|
14
14
|
furnishedOnly?: boolean | undefined;
|
|
15
15
|
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
id: string;
|
|
18
|
+
city: string;
|
|
18
19
|
maxPrice: string;
|
|
19
20
|
minBedrooms: string;
|
|
20
|
-
city?: string | undefined;
|
|
21
21
|
furnishedOnly?: boolean | undefined;
|
|
22
22
|
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
23
23
|
}>;
|
|
@@ -25,28 +25,28 @@ export type Alert = z.infer<typeof AlertSchema>;
|
|
|
25
25
|
export declare const UserSchema: z.ZodObject<{
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
-
frequency: z.ZodEffects<z.ZodEnum<["5", "15", "60", "180", "360", "1440"]>, number, "5" | "15" | "60" | "180" | "360" | "1440">;
|
|
28
|
+
frequency: z.ZodEffects<z.ZodEnum<["5", "15", "60", "180", "360", "1440", "10080"]>, number, "5" | "15" | "60" | "180" | "360" | "1440" | "10080">;
|
|
29
29
|
email: z.ZodString;
|
|
30
30
|
lastNotified: z.ZodOptional<z.ZodString>;
|
|
31
31
|
alerts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
32
32
|
id: z.ZodString;
|
|
33
|
-
city: z.
|
|
33
|
+
city: z.ZodString;
|
|
34
34
|
maxPrice: z.ZodEffects<z.ZodString, number, string>;
|
|
35
35
|
minBedrooms: z.ZodEffects<z.ZodString, number, string>;
|
|
36
36
|
furnishedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["house", "apartment", "studio", "shared-room"]>, "many">>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
id: string;
|
|
40
|
+
city: string;
|
|
40
41
|
maxPrice: number;
|
|
41
42
|
minBedrooms: number;
|
|
42
|
-
city?: string | undefined;
|
|
43
43
|
furnishedOnly?: boolean | undefined;
|
|
44
44
|
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
id: string;
|
|
47
|
+
city: string;
|
|
47
48
|
maxPrice: string;
|
|
48
49
|
minBedrooms: string;
|
|
49
|
-
city?: string | undefined;
|
|
50
50
|
furnishedOnly?: boolean | undefined;
|
|
51
51
|
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
52
52
|
}>, "many">>;
|
|
@@ -57,24 +57,24 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
57
57
|
email: string;
|
|
58
58
|
alerts: {
|
|
59
59
|
id: string;
|
|
60
|
+
city: string;
|
|
60
61
|
maxPrice: number;
|
|
61
62
|
minBedrooms: number;
|
|
62
|
-
city?: string | undefined;
|
|
63
63
|
furnishedOnly?: boolean | undefined;
|
|
64
64
|
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
65
65
|
}[];
|
|
66
66
|
lastNotified?: string | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
id: string;
|
|
69
|
-
frequency: "5" | "15" | "60" | "180" | "360" | "1440";
|
|
69
|
+
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
70
70
|
email: string;
|
|
71
71
|
notificationsEnabled?: boolean | undefined;
|
|
72
72
|
lastNotified?: string | undefined;
|
|
73
73
|
alerts?: {
|
|
74
74
|
id: string;
|
|
75
|
+
city: string;
|
|
75
76
|
maxPrice: string;
|
|
76
77
|
minBedrooms: string;
|
|
77
|
-
city?: string | undefined;
|
|
78
78
|
furnishedOnly?: boolean | undefined;
|
|
79
79
|
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
80
80
|
}[] | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const AlertSchema = z.object({
|
|
3
3
|
id: z.string(),
|
|
4
|
-
city: z.string()
|
|
4
|
+
city: z.string(),
|
|
5
5
|
maxPrice: z.string().regex(/^\d+$/).transform(Number),
|
|
6
6
|
minBedrooms: z.string().regex(/^\d+$/).transform(Number),
|
|
7
7
|
furnishedOnly: z.boolean().optional(),
|
|
@@ -12,7 +12,7 @@ export const AlertSchema = z.object({
|
|
|
12
12
|
export const UserSchema = z.object({
|
|
13
13
|
id: z.string(),
|
|
14
14
|
notificationsEnabled: z.boolean().default(true),
|
|
15
|
-
frequency: z.enum(["5", "15", "60", "180", "360", "1440"]).transform(Number),
|
|
15
|
+
frequency: z.enum(["5", "15", "60", "180", "360", "1440", "10080"]).transform(Number),
|
|
16
16
|
email: z.string().email(),
|
|
17
17
|
lastNotified: z.string().datetime().optional(),
|
|
18
18
|
alerts: z.array(AlertSchema).default([]),
|