house-types 2.9.11 → 2.9.12

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 CHANGED
@@ -12,7 +12,7 @@ import { z } from "zod";
12
12
  export declare const AlertSchema: z.ZodObject<{
13
13
  city: z.ZodEnum<["'s-Hertogenbosch", "Amsterdam", "Arnhem", "Breda", "Delft", "Eindhoven", "Groningen", "Haarlem", "Leiden", "Maastricht", "Nijmegen", "Rotterdam", "The Hague", "Utrecht", "Zwolle"]>;
14
14
  radius: z.ZodOptional<z.ZodEffects<z.ZodEnum<["2", "5", "10", "20"]>, number, "5" | "2" | "10" | "20">>;
15
- propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
15
+ propertyTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
16
16
  maxPrice: z.ZodEffects<z.ZodEnum<["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"]>, number, "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">;
17
17
  minSurface: z.ZodOptional<z.ZodEffects<z.ZodEnum<["5", "10", "15", "20", "30", "40", "50", "75", "100", "125", "150"]>, number, "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150">>;
18
18
  minBedrooms: z.ZodOptional<z.ZodEffects<z.ZodEnum<["1", "2", "3", "4", "5", "6", "7"]>, number, "5" | "2" | "1" | "3" | "4" | "6" | "7">>;
@@ -28,7 +28,7 @@ export declare const AlertSchema: z.ZodObject<{
28
28
  frequency: number;
29
29
  createdAt: string;
30
30
  radius?: number | undefined;
31
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
31
+ propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
32
32
  minSurface?: number | undefined;
33
33
  minBedrooms?: number | undefined;
34
34
  furnished?: boolean | undefined;
@@ -41,7 +41,7 @@ export declare const AlertSchema: z.ZodObject<{
41
41
  frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
42
42
  createdAt: string;
43
43
  radius?: "5" | "2" | "10" | "20" | undefined;
44
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
44
+ propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
45
45
  minSurface?: "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150" | undefined;
46
46
  minBedrooms?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
47
47
  furnished?: boolean | undefined;
@@ -50,41 +50,41 @@ export declare const AlertSchema: z.ZodObject<{
50
50
  gender?: "Male" | "Female" | "Other" | undefined;
51
51
  }>;
52
52
  export declare const AlertClientSchema: z.ZodObject<{
53
- city: z.ZodEnum<["'s-Hertogenbosch", "Amsterdam", "Arnhem", "Breda", "Delft", "Eindhoven", "Groningen", "Haarlem", "Leiden", "Maastricht", "Nijmegen", "Rotterdam", "The Hague", "Utrecht", "Zwolle"]>;
54
- radius: z.ZodOptional<z.ZodEnum<["2", "5", "10", "20"]>>;
55
- propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
56
- maxPrice: z.ZodEnum<["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"]>;
57
- minSurface: z.ZodOptional<z.ZodEnum<["5", "10", "15", "20", "30", "40", "50", "75", "100", "125", "150"]>>;
58
- minBedrooms: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5", "6", "7"]>>;
53
+ city: z.ZodString;
54
+ radius: z.ZodOptional<z.ZodString>;
55
+ propertyTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ maxPrice: z.ZodString;
57
+ minSurface: z.ZodOptional<z.ZodString>;
58
+ minBedrooms: z.ZodOptional<z.ZodString>;
59
59
  furnished: z.ZodOptional<z.ZodBoolean>;
60
- maxFlatmates: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5", "6", "7"]>>;
61
- flatmatesGender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Mixed"]>>;
62
- gender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Other"]>>;
63
- frequency: z.ZodEnum<["5", "15", "60", "180", "360", "1440", "10080"]>;
60
+ maxFlatmates: z.ZodOptional<z.ZodString>;
61
+ flatmatesGender: z.ZodOptional<z.ZodString>;
62
+ gender: z.ZodOptional<z.ZodString>;
63
+ frequency: z.ZodString;
64
64
  }, "strip", z.ZodTypeAny, {
65
- city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
66
- 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";
67
- frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
68
- radius?: "5" | "2" | "10" | "20" | undefined;
69
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
70
- minSurface?: "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150" | undefined;
71
- minBedrooms?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
65
+ city: string;
66
+ maxPrice: string;
67
+ frequency: string;
68
+ radius?: string | undefined;
69
+ propertyTypes?: string[] | undefined;
70
+ minSurface?: string | undefined;
71
+ minBedrooms?: string | undefined;
72
72
  furnished?: boolean | undefined;
73
- maxFlatmates?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
74
- flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
75
- gender?: "Male" | "Female" | "Other" | undefined;
73
+ maxFlatmates?: string | undefined;
74
+ flatmatesGender?: string | undefined;
75
+ gender?: string | undefined;
76
76
  }, {
77
- city: "'s-Hertogenbosch" | "Amsterdam" | "Arnhem" | "Breda" | "Delft" | "Eindhoven" | "Groningen" | "Haarlem" | "Leiden" | "Maastricht" | "Nijmegen" | "Rotterdam" | "The Hague" | "Utrecht" | "Zwolle";
78
- 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";
79
- frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
80
- radius?: "5" | "2" | "10" | "20" | undefined;
81
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
82
- minSurface?: "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150" | undefined;
83
- minBedrooms?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
77
+ city: string;
78
+ maxPrice: string;
79
+ frequency: string;
80
+ radius?: string | undefined;
81
+ propertyTypes?: string[] | undefined;
82
+ minSurface?: string | undefined;
83
+ minBedrooms?: string | undefined;
84
84
  furnished?: boolean | undefined;
85
- maxFlatmates?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
86
- flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
87
- gender?: "Male" | "Female" | "Other" | undefined;
85
+ maxFlatmates?: string | undefined;
86
+ flatmatesGender?: string | undefined;
87
+ gender?: string | undefined;
88
88
  }>;
89
89
  export type Alert = z.infer<typeof AlertSchema>;
90
90
  export type AlertClient = z.infer<typeof AlertClientSchema>;
@@ -95,7 +95,7 @@ export declare const UserSchema: z.ZodObject<{
95
95
  alerts: z.ZodArray<z.ZodObject<{
96
96
  city: z.ZodEnum<["'s-Hertogenbosch", "Amsterdam", "Arnhem", "Breda", "Delft", "Eindhoven", "Groningen", "Haarlem", "Leiden", "Maastricht", "Nijmegen", "Rotterdam", "The Hague", "Utrecht", "Zwolle"]>;
97
97
  radius: z.ZodOptional<z.ZodEffects<z.ZodEnum<["2", "5", "10", "20"]>, number, "5" | "2" | "10" | "20">>;
98
- propertyType: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
98
+ propertyTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["House", "Apartment", "Studio", "Room"]>, "many">>;
99
99
  maxPrice: z.ZodEffects<z.ZodEnum<["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"]>, number, "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">;
100
100
  minSurface: z.ZodOptional<z.ZodEffects<z.ZodEnum<["5", "10", "15", "20", "30", "40", "50", "75", "100", "125", "150"]>, number, "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150">>;
101
101
  minBedrooms: z.ZodOptional<z.ZodEffects<z.ZodEnum<["1", "2", "3", "4", "5", "6", "7"]>, number, "5" | "2" | "1" | "3" | "4" | "6" | "7">>;
@@ -111,7 +111,7 @@ export declare const UserSchema: z.ZodObject<{
111
111
  frequency: number;
112
112
  createdAt: string;
113
113
  radius?: number | undefined;
114
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
114
+ propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
115
115
  minSurface?: number | undefined;
116
116
  minBedrooms?: number | undefined;
117
117
  furnished?: boolean | undefined;
@@ -124,7 +124,7 @@ export declare const UserSchema: z.ZodObject<{
124
124
  frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
125
125
  createdAt: string;
126
126
  radius?: "5" | "2" | "10" | "20" | undefined;
127
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
127
+ propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
128
128
  minSurface?: "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150" | undefined;
129
129
  minBedrooms?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
130
130
  furnished?: boolean | undefined;
@@ -141,7 +141,7 @@ export declare const UserSchema: z.ZodObject<{
141
141
  frequency: number;
142
142
  createdAt: string;
143
143
  radius?: number | undefined;
144
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
144
+ propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
145
145
  minSurface?: number | undefined;
146
146
  minBedrooms?: number | undefined;
147
147
  furnished?: boolean | undefined;
@@ -158,7 +158,7 @@ export declare const UserSchema: z.ZodObject<{
158
158
  frequency: "5" | "15" | "60" | "180" | "360" | "1440" | "10080";
159
159
  createdAt: string;
160
160
  radius?: "5" | "2" | "10" | "20" | undefined;
161
- propertyType?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
161
+ propertyTypes?: ("House" | "Apartment" | "Studio" | "Room")[] | undefined;
162
162
  minSurface?: "5" | "15" | "10" | "20" | "30" | "40" | "50" | "75" | "100" | "125" | "150" | undefined;
163
163
  minBedrooms?: "5" | "2" | "1" | "3" | "4" | "6" | "7" | undefined;
164
164
  furnished?: boolean | undefined;
@@ -187,11 +187,11 @@ export declare const ParsedHouseSchema: z.ZodObject<{
187
187
  createdAt: z.ZodString;
188
188
  }, "strip", z.ZodTypeAny, {
189
189
  city: string;
190
- propertyType: string;
191
190
  createdAt: string;
192
191
  source: string;
193
192
  id: string;
194
193
  price: string;
194
+ propertyType: string;
195
195
  bedrooms: string;
196
196
  furnished?: boolean | undefined;
197
197
  gender?: string | undefined;
@@ -202,11 +202,11 @@ export declare const ParsedHouseSchema: z.ZodObject<{
202
202
  image?: string | undefined;
203
203
  }, {
204
204
  city: string;
205
- propertyType: string;
206
205
  createdAt: string;
207
206
  source: string;
208
207
  id: string;
209
208
  price: string;
209
+ propertyType: string;
210
210
  bedrooms: string;
211
211
  furnished?: boolean | undefined;
212
212
  gender?: string | undefined;
@@ -234,11 +234,11 @@ export declare const TransformedHouseSchema: z.ZodObject<{
234
234
  createdAt: z.ZodString;
235
235
  }, "strip", z.ZodTypeAny, {
236
236
  city: string;
237
- propertyType: "House" | "Apartment" | "Studio" | "Room";
238
237
  createdAt: string;
239
238
  source: string;
240
239
  id: string;
241
240
  price: number;
241
+ propertyType: "House" | "Apartment" | "Studio" | "Room";
242
242
  bedrooms: number;
243
243
  furnished?: boolean | undefined;
244
244
  gender?: string | undefined;
@@ -249,11 +249,11 @@ export declare const TransformedHouseSchema: z.ZodObject<{
249
249
  image?: string | undefined;
250
250
  }, {
251
251
  city: string;
252
- propertyType: "House" | "Apartment" | "Studio" | "Room";
253
252
  createdAt: string;
254
253
  source: string;
255
254
  id: string;
256
255
  price: number;
256
+ propertyType: "House" | "Apartment" | "Studio" | "Room";
257
257
  bedrooms: number;
258
258
  furnished?: boolean | undefined;
259
259
  gender?: string | undefined;
@@ -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;AAsBjC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBF,CAAC;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeR,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"}
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;AAoBjC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBF,CAAC;AAEvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeR,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
@@ -147,11 +147,10 @@ export const SURFACES = [
147
147
  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
- const propertyType = z.enum(PROPERTY_TYPES);
151
150
  export const AlertSchema = z.object({
152
151
  city: z.enum(CITIES),
153
152
  radius: z.enum(RADIUSES).transform(Number).optional(),
154
- propertyType: z.array(propertyType).optional(),
153
+ propertyTypes: z.array(z.enum(PROPERTY_TYPES)).optional(),
155
154
  maxPrice: z.enum(PRICES).transform(Number),
156
155
  minSurface: z.enum(SURFACES).transform(Number).optional(),
157
156
  minBedrooms: z.enum(BEDROOMS).transform(Number).optional(),
@@ -163,17 +162,17 @@ export const AlertSchema = z.object({
163
162
  createdAt: z.string().datetime(),
164
163
  });
165
164
  export const AlertClientSchema = z.object({
166
- city: z.enum(CITIES),
167
- radius: z.enum(RADIUSES).optional(),
168
- propertyType: z.array(propertyType).optional(),
169
- maxPrice: z.enum(PRICES),
170
- minSurface: z.enum(SURFACES).optional(),
171
- minBedrooms: z.enum(BEDROOMS).optional(),
165
+ city: z.string(),
166
+ radius: z.string().optional(),
167
+ propertyTypes: z.array(z.string()).optional(),
168
+ maxPrice: z.string(),
169
+ minSurface: z.string().optional(),
170
+ minBedrooms: z.string().optional(),
172
171
  furnished: z.boolean().optional(),
173
- maxFlatmates: z.enum(FLATMATES).optional(),
174
- flatmatesGender: z.enum(FLATMATES_GENDERS).optional(),
175
- gender: z.enum(GENDERS).optional(),
176
- frequency: z.enum(FREQUENCIES),
172
+ maxFlatmates: z.string().optional(),
173
+ flatmatesGender: z.string().optional(),
174
+ gender: z.string().optional(),
175
+ frequency: z.string(),
177
176
  });
178
177
  export const UserSchema = z.object({
179
178
  notificationsEnabled: z.boolean().default(true),
@@ -203,7 +202,7 @@ export const ParsedHouseSchema = z.object({
203
202
  export const TransformedHouseSchema = z.object({
204
203
  ...parsedHouseSchema,
205
204
  price: z.number(),
206
- propertyType,
205
+ propertyType: z.enum(PROPERTY_TYPES),
207
206
  bedrooms: z.number(),
208
207
  roommates: z.number().optional(),
209
208
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "house-types",
3
- "version": "2.9.11",
3
+ "version": "2.9.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",