house-types 1.0.1 → 1.0.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 +50 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,72 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const UserSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
|
|
4
|
+
location: z.ZodOptional<z.ZodString>;
|
|
5
|
+
maxPrice: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
minBedrooms: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
furnishedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["house", "apartment", "studio", "shared-room"]>, "many">>;
|
|
9
|
+
notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
frequency: z.ZodEnum<["5", "15", "60", "180", "360", "1440"]>;
|
|
5
11
|
email: z.ZodString;
|
|
6
12
|
}, "strip", z.ZodTypeAny, {
|
|
7
13
|
id: string;
|
|
8
|
-
|
|
14
|
+
notificationsEnabled: boolean;
|
|
15
|
+
frequency: "5" | "15" | "60" | "180" | "360" | "1440";
|
|
9
16
|
email: string;
|
|
17
|
+
location?: string | undefined;
|
|
18
|
+
maxPrice?: number | undefined;
|
|
19
|
+
minBedrooms?: number | undefined;
|
|
20
|
+
furnishedOnly?: boolean | undefined;
|
|
21
|
+
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
10
22
|
}, {
|
|
11
23
|
id: string;
|
|
12
|
-
|
|
24
|
+
frequency: "5" | "15" | "60" | "180" | "360" | "1440";
|
|
13
25
|
email: string;
|
|
26
|
+
location?: string | undefined;
|
|
27
|
+
maxPrice?: number | undefined;
|
|
28
|
+
minBedrooms?: number | undefined;
|
|
29
|
+
furnishedOnly?: boolean | undefined;
|
|
30
|
+
propertyType?: ("house" | "apartment" | "studio" | "shared-room")[] | undefined;
|
|
31
|
+
notificationsEnabled?: boolean | undefined;
|
|
14
32
|
}>;
|
|
15
33
|
export type User = z.infer<typeof UserSchema>;
|
|
16
|
-
export declare const
|
|
34
|
+
export declare const HouseSchema: z.ZodObject<{
|
|
17
35
|
id: z.ZodString;
|
|
18
|
-
|
|
36
|
+
city: z.ZodString;
|
|
19
37
|
price: z.ZodNumber;
|
|
38
|
+
availabilityDate: z.ZodOptional<z.ZodString>;
|
|
39
|
+
propertyType: z.ZodEnum<["house", "apartment", "studio", "shared-room"]>;
|
|
40
|
+
bedrooms: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
roommates: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
gender: z.ZodOptional<z.ZodEnum<["m", "f", "any"]>>;
|
|
43
|
+
propertyGender: z.ZodOptional<z.ZodEnum<["m", "f", "mixed"]>>;
|
|
44
|
+
bathrooms: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
furnished: z.ZodOptional<z.ZodBoolean>;
|
|
20
46
|
}, "strip", z.ZodTypeAny, {
|
|
21
47
|
id: string;
|
|
22
|
-
|
|
48
|
+
propertyType: "house" | "apartment" | "studio" | "shared-room";
|
|
49
|
+
city: string;
|
|
23
50
|
price: number;
|
|
51
|
+
availabilityDate?: string | undefined;
|
|
52
|
+
bedrooms?: number | undefined;
|
|
53
|
+
roommates?: number | undefined;
|
|
54
|
+
gender?: "m" | "f" | "any" | undefined;
|
|
55
|
+
propertyGender?: "m" | "f" | "mixed" | undefined;
|
|
56
|
+
bathrooms?: number | undefined;
|
|
57
|
+
furnished?: boolean | undefined;
|
|
24
58
|
}, {
|
|
25
59
|
id: string;
|
|
26
|
-
|
|
60
|
+
propertyType: "house" | "apartment" | "studio" | "shared-room";
|
|
61
|
+
city: string;
|
|
27
62
|
price: number;
|
|
63
|
+
availabilityDate?: string | undefined;
|
|
64
|
+
bedrooms?: number | undefined;
|
|
65
|
+
roommates?: number | undefined;
|
|
66
|
+
gender?: "m" | "f" | "any" | undefined;
|
|
67
|
+
propertyGender?: "m" | "f" | "mixed" | undefined;
|
|
68
|
+
bathrooms?: number | undefined;
|
|
69
|
+
furnished?: boolean | undefined;
|
|
28
70
|
}>;
|
|
29
|
-
export type
|
|
71
|
+
export type House = z.infer<typeof HouseSchema>;
|
|
30
72
|
//# 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;AAExB,eAAO,MAAM,UAAU
|
|
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,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const UserSchema = z.object({
|
|
3
3
|
id: z.string(),
|
|
4
|
-
|
|
4
|
+
location: z.string().optional(),
|
|
5
|
+
maxPrice: z.number().min(0).optional(),
|
|
6
|
+
minBedrooms: z.number().min(0).optional(),
|
|
7
|
+
furnishedOnly: z.boolean().optional(),
|
|
8
|
+
propertyType: z.array(z.enum(["house", "apartment", "studio", "shared-room"])).optional(),
|
|
9
|
+
notificationsEnabled: z.boolean().default(true),
|
|
10
|
+
frequency: z.enum(["5", "15", "60", "180", "360", "1440"]),
|
|
5
11
|
email: z.string().email(),
|
|
6
12
|
});
|
|
7
|
-
export const
|
|
13
|
+
export const HouseSchema = z.object({
|
|
8
14
|
id: z.string(),
|
|
9
|
-
|
|
10
|
-
price: z.number().
|
|
15
|
+
city: z.string(),
|
|
16
|
+
price: z.number().min(0),
|
|
17
|
+
availabilityDate: z.string().optional(),
|
|
18
|
+
propertyType: z.enum(["house", "apartment", "studio", "shared-room"]),
|
|
19
|
+
bedrooms: z.number().min(0).optional(),
|
|
20
|
+
roommates: z.number().min(0).optional(),
|
|
21
|
+
gender: z.enum(['m', 'f', 'any']).optional(),
|
|
22
|
+
propertyGender: z.enum(['m', 'f', 'mixed']).optional(),
|
|
23
|
+
bathrooms: z.number().min(0).optional(),
|
|
24
|
+
furnished: z.boolean().optional(),
|
|
11
25
|
});
|