house-types 2.9.13 → 2.9.15
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 +15 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const BEDROOMS: readonly ["1", "2", "3", "4", "5", "6", "7"];
|
|
|
10
10
|
export declare const FLATMATES: readonly ["1", "2", "3", "4", "5", "6", "7"];
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
export declare const AlertSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
13
14
|
city: z.ZodEnum<["'s-Hertogenbosch", "Amsterdam", "Arnhem", "Breda", "Delft", "Eindhoven", "Groningen", "Haarlem", "Leiden", "Maastricht", "Nijmegen", "Rotterdam", "The Hague", "Utrecht", "Zwolle"]>;
|
|
14
15
|
radius: z.ZodOptional<z.ZodEffects<z.ZodEnum<["2", "5", "10", "20"]>, number, "5" | "2" | "10" | "20">>;
|
|
15
16
|
propertyTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
|
|
@@ -23,6 +24,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
23
24
|
frequency: z.ZodEffects<z.ZodEnum<["5", "15", "60", "180", "360", "1440", "10080"]>, number, "5" | "15" | "60" | "180" | "360" | "1440" | "10080">;
|
|
24
25
|
createdAt: z.ZodString;
|
|
25
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
id: string;
|
|
26
28
|
city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
|
|
27
29
|
maxPrice: number;
|
|
28
30
|
frequency: number;
|
|
@@ -36,6 +38,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
36
38
|
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
37
39
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
38
40
|
}, {
|
|
41
|
+
id: string;
|
|
39
42
|
city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
|
|
40
43
|
maxPrice: "250" | "300" | "350" | "400" | "450" | "500" | "550" | "600" | "650" | "700" | "750" | "800" | "850" | "900" | "950" | "1000" | "1050" | "1100" | "1150" | "1200" | "1250" | "1300" | "1350" | "1400" | "1450" | "1500" | "1550" | "1600" | "1650" | "1700" | "1750" | "1800" | "1850" | "1900" | "1950" | "2000" | "2050" | "2100" | "2150" | "2200" | "2250" | "2300" | "2350" | "2400" | "2450" | "2500" | "2550" | "2600" | "2650" | "2700" | "2750" | "2800" | "2850" | "2900" | "2950" | "3000" | "3050" | "3100" | "3150" | "3200" | "3250" | "3300" | "3350" | "3400" | "3450" | "3500" | "3550" | "3600" | "3650" | "3700" | "3750" | "3800" | "3850" | "3900" | "3950" | "4000" | "4050" | "4100" | "4150" | "4200" | "4250" | "4300" | "4350" | "4400" | "4450" | "4500" | "4550" | "4600" | "4650" | "4700" | "4750" | "4800" | "4850" | "4900" | "4950" | "5000" | "5050" | "5100" | "5150" | "5200";
|
|
41
44
|
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
@@ -50,6 +53,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
50
53
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
51
54
|
}>;
|
|
52
55
|
export declare const AlertClientSchema: z.ZodObject<{
|
|
56
|
+
id: z.ZodOptional<z.ZodString>;
|
|
53
57
|
city: z.ZodString;
|
|
54
58
|
radius: z.ZodOptional<z.ZodString>;
|
|
55
59
|
propertyTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -65,6 +69,7 @@ export declare const AlertClientSchema: z.ZodObject<{
|
|
|
65
69
|
city: string;
|
|
66
70
|
maxPrice: string;
|
|
67
71
|
frequency: string;
|
|
72
|
+
id?: string | undefined;
|
|
68
73
|
radius?: string | undefined;
|
|
69
74
|
propertyTypes?: string[] | undefined;
|
|
70
75
|
minSurface?: string | undefined;
|
|
@@ -77,6 +82,7 @@ export declare const AlertClientSchema: z.ZodObject<{
|
|
|
77
82
|
city: string;
|
|
78
83
|
maxPrice: string;
|
|
79
84
|
frequency: string;
|
|
85
|
+
id?: string | undefined;
|
|
80
86
|
radius?: string | undefined;
|
|
81
87
|
propertyTypes?: string[] | undefined;
|
|
82
88
|
minSurface?: string | undefined;
|
|
@@ -93,6 +99,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
93
99
|
email: z.ZodString;
|
|
94
100
|
lastNotified: z.ZodOptional<z.ZodString>;
|
|
95
101
|
alerts: z.ZodArray<z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
96
103
|
city: z.ZodEnum<["'s-Hertogenbosch", "Amsterdam", "Arnhem", "Breda", "Delft", "Eindhoven", "Groningen", "Haarlem", "Leiden", "Maastricht", "Nijmegen", "Rotterdam", "The Hague", "Utrecht", "Zwolle"]>;
|
|
97
104
|
radius: z.ZodOptional<z.ZodEffects<z.ZodEnum<["2", "5", "10", "20"]>, number, "5" | "2" | "10" | "20">>;
|
|
98
105
|
propertyTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
|
|
@@ -106,6 +113,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
106
113
|
frequency: z.ZodEffects<z.ZodEnum<["5", "15", "60", "180", "360", "1440", "10080"]>, number, "5" | "15" | "60" | "180" | "360" | "1440" | "10080">;
|
|
107
114
|
createdAt: z.ZodString;
|
|
108
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
id: string;
|
|
109
117
|
city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
|
|
110
118
|
maxPrice: number;
|
|
111
119
|
frequency: number;
|
|
@@ -119,6 +127,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
119
127
|
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
120
128
|
gender?: "Male" | "Female" | "Other" | undefined;
|
|
121
129
|
}, {
|
|
130
|
+
id: string;
|
|
122
131
|
city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
|
|
123
132
|
maxPrice: "250" | "300" | "350" | "400" | "450" | "500" | "550" | "600" | "650" | "700" | "750" | "800" | "850" | "900" | "950" | "1000" | "1050" | "1100" | "1150" | "1200" | "1250" | "1300" | "1350" | "1400" | "1450" | "1500" | "1550" | "1600" | "1650" | "1700" | "1750" | "1800" | "1850" | "1900" | "1950" | "2000" | "2050" | "2100" | "2150" | "2200" | "2250" | "2300" | "2350" | "2400" | "2450" | "2500" | "2550" | "2600" | "2650" | "2700" | "2750" | "2800" | "2850" | "2900" | "2950" | "3000" | "3050" | "3100" | "3150" | "3200" | "3250" | "3300" | "3350" | "3400" | "3450" | "3500" | "3550" | "3600" | "3650" | "3700" | "3750" | "3800" | "3850" | "3900" | "3950" | "4000" | "4050" | "4100" | "4150" | "4200" | "4250" | "4300" | "4350" | "4400" | "4450" | "4500" | "4550" | "4600" | "4650" | "4700" | "4750" | "4800" | "4850" | "4900" | "4950" | "5000" | "5050" | "5100" | "5150" | "5200";
|
|
124
133
|
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
@@ -136,6 +145,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
136
145
|
notificationsEnabled: boolean;
|
|
137
146
|
email: string;
|
|
138
147
|
alerts: {
|
|
148
|
+
id: string;
|
|
139
149
|
city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
|
|
140
150
|
maxPrice: number;
|
|
141
151
|
frequency: number;
|
|
@@ -153,6 +163,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
153
163
|
}, {
|
|
154
164
|
email: string;
|
|
155
165
|
alerts: {
|
|
166
|
+
id: string;
|
|
156
167
|
city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
|
|
157
168
|
maxPrice: "250" | "300" | "350" | "400" | "450" | "500" | "550" | "600" | "650" | "700" | "750" | "800" | "850" | "900" | "950" | "1000" | "1050" | "1100" | "1150" | "1200" | "1250" | "1300" | "1350" | "1400" | "1450" | "1500" | "1550" | "1600" | "1650" | "1700" | "1750" | "1800" | "1850" | "1900" | "1950" | "2000" | "2050" | "2100" | "2150" | "2200" | "2250" | "2300" | "2350" | "2400" | "2450" | "2500" | "2550" | "2600" | "2650" | "2700" | "2750" | "2800" | "2850" | "2900" | "2950" | "3000" | "3050" | "3100" | "3150" | "3200" | "3250" | "3300" | "3350" | "3400" | "3450" | "3500" | "3550" | "3600" | "3650" | "3700" | "3750" | "3800" | "3850" | "3900" | "3950" | "4000" | "4050" | "4100" | "4150" | "4200" | "4250" | "4300" | "4350" | "4400" | "4450" | "4500" | "4550" | "4600" | "4650" | "4700" | "4750" | "4800" | "4850" | "4900" | "4950" | "5000" | "5050" | "5100" | "5150" | "5200";
|
|
158
169
|
frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
|
|
@@ -186,10 +197,10 @@ export declare const ParsedHouseSchema: z.ZodObject<{
|
|
|
186
197
|
image: z.ZodOptional<z.ZodString>;
|
|
187
198
|
createdAt: z.ZodString;
|
|
188
199
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
id: string;
|
|
189
201
|
city: string;
|
|
190
202
|
createdAt: string;
|
|
191
203
|
source: string;
|
|
192
|
-
id: string;
|
|
193
204
|
price: string;
|
|
194
205
|
propertyType: string;
|
|
195
206
|
bedrooms: string;
|
|
@@ -201,10 +212,10 @@ export declare const ParsedHouseSchema: z.ZodObject<{
|
|
|
201
212
|
bathrooms?: string | undefined;
|
|
202
213
|
image?: string | undefined;
|
|
203
214
|
}, {
|
|
215
|
+
id: string;
|
|
204
216
|
city: string;
|
|
205
217
|
createdAt: string;
|
|
206
218
|
source: string;
|
|
207
|
-
id: string;
|
|
208
219
|
price: string;
|
|
209
220
|
propertyType: string;
|
|
210
221
|
bedrooms: string;
|
|
@@ -233,10 +244,10 @@ export declare const TransformedHouseSchema: z.ZodObject<{
|
|
|
233
244
|
image: z.ZodOptional<z.ZodString>;
|
|
234
245
|
createdAt: z.ZodString;
|
|
235
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
id: string;
|
|
236
248
|
city: string;
|
|
237
249
|
createdAt: string;
|
|
238
250
|
source: string;
|
|
239
|
-
id: string;
|
|
240
251
|
price: number;
|
|
241
252
|
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
242
253
|
bedrooms: number;
|
|
@@ -248,10 +259,10 @@ export declare const TransformedHouseSchema: z.ZodObject<{
|
|
|
248
259
|
bathrooms?: string | undefined;
|
|
249
260
|
image?: string | undefined;
|
|
250
261
|
}, {
|
|
262
|
+
id: string;
|
|
251
263
|
city: string;
|
|
252
264
|
createdAt: string;
|
|
253
265
|
source: string;
|
|
254
|
-
id: string;
|
|
255
266
|
price: number;
|
|
256
267
|
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
257
268
|
bedrooms: number;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAChF,eAAO,MAAM,MAAM,gMAgBT,CAAC;AAIX,eAAO,MAAM,OAAO,sCAA4B,CAAC;AACjD,eAAO,MAAM,iBAAiB,sCAA4B,CAAC;AAE3D,eAAO,MAAM,WAAW,2DAQd,CAAC;AAEX,eAAO,MAAM,QAAQ,iCAAkC,CAAC;AAExD,eAAO,MAAM,MAAM,4xBAqGT,CAAC;AAEX,eAAO,MAAM,QAAQ,+EAYX,CAAC;AAEX,eAAO,MAAM,QAAQ,8CAA+C,CAAC;AAErE,eAAO,MAAM,SAAS,8CAA+C,CAAC;AAEtE,OAAO,EAAE,CAAC,EAAW,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAChF,eAAO,MAAM,MAAM,gMAgBT,CAAC;AAIX,eAAO,MAAM,OAAO,sCAA4B,CAAC;AACjD,eAAO,MAAM,iBAAiB,sCAA4B,CAAC;AAE3D,eAAO,MAAM,WAAW,2DAQd,CAAC;AAEX,eAAO,MAAM,QAAQ,iCAAkC,CAAC;AAExD,eAAO,MAAM,MAAM,4xBAqGT,CAAC;AAEX,eAAO,MAAM,QAAQ,+EAYX,CAAC;AAEX,eAAO,MAAM,QAAQ,8CAA+C,CAAC;AAErE,eAAO,MAAM,SAAS,8CAA+C,CAAC;AAEtE,OAAO,EAAE,CAAC,EAAW,MAAM,KAAK,CAAC;AAqBjC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBF,CAAC;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBR,CAAC;AAEvB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,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
|
@@ -148,6 +148,7 @@ export const BEDROOMS = ["1", "2", "3", "4", "5", "6", "7"];
|
|
|
148
148
|
export const FLATMATES = ["1", "2", "3", "4", "5", "6", "7"];
|
|
149
149
|
import { z } from "zod";
|
|
150
150
|
export const AlertSchema = z.object({
|
|
151
|
+
id: z.string(),
|
|
151
152
|
city: z.enum(CITIES),
|
|
152
153
|
radius: z.enum(RADIUSES).transform(Number).optional(),
|
|
153
154
|
propertyTypes: z.array(z.enum(PROPERTY_TYPES)).optional(),
|
|
@@ -162,6 +163,7 @@ export const AlertSchema = z.object({
|
|
|
162
163
|
createdAt: z.string().datetime(),
|
|
163
164
|
});
|
|
164
165
|
export const AlertClientSchema = z.object({
|
|
166
|
+
id: z.string().optional(),
|
|
165
167
|
city: z.string(),
|
|
166
168
|
radius: z.string().optional(),
|
|
167
169
|
propertyTypes: z.array(z.string()).optional(),
|