house-types 2.14.2 → 2.14.3
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 +2 -143
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -46
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -643,149 +643,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
643
643
|
lastNotified?: string | undefined;
|
|
644
644
|
}>;
|
|
645
645
|
export type User = z.infer<typeof UserSchema>;
|
|
646
|
-
export declare const ParsedHouseSchema: z.ZodObject<{
|
|
647
|
-
city: z.ZodString;
|
|
648
|
-
postalCode: z.ZodNullable<z.ZodString>;
|
|
649
|
-
addressWithoutCity: z.ZodNullable<z.ZodString>;
|
|
650
|
-
price: z.ZodNumber;
|
|
651
|
-
immediatelyAvailable: z.ZodBoolean;
|
|
652
|
-
startDateIfNotImmediatelyAvailableISO8601: z.ZodNullable<z.ZodString>;
|
|
653
|
-
propertyType: z.ZodEnum<["House", "Apartment", "Studio", "Room"]>;
|
|
654
|
-
bedrooms: z.ZodNullable<z.ZodNumber>;
|
|
655
|
-
flatmatesIfShared: z.ZodNullable<z.ZodNumber>;
|
|
656
|
-
listingRequiredGender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Other"]>>;
|
|
657
|
-
flatmatesGender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Mixed"]>>;
|
|
658
|
-
bathrooms: z.ZodNullable<z.ZodNumber>;
|
|
659
|
-
furnishing: z.ZodOptional<z.ZodEnum<["Uncarpeted", "Unfurnished", "Furnished"]>>;
|
|
660
|
-
surface: z.ZodNullable<z.ZodNumber>;
|
|
661
|
-
seniorsOnly: z.ZodNullable<z.ZodBoolean>;
|
|
662
|
-
studentsOnly: z.ZodNullable<z.ZodBoolean>;
|
|
663
|
-
bathtub: z.ZodNullable<z.ZodBoolean>;
|
|
664
|
-
garden: z.ZodNullable<z.ZodBoolean>;
|
|
665
|
-
floorNumber: z.ZodNullable<z.ZodNumber>;
|
|
666
|
-
pets: z.ZodNullable<z.ZodBoolean>;
|
|
667
|
-
garage: z.ZodNullable<z.ZodBoolean>;
|
|
668
|
-
gym: z.ZodNullable<z.ZodBoolean>;
|
|
669
|
-
}, "strip", z.ZodTypeAny, {
|
|
670
|
-
city: string;
|
|
671
|
-
postalCode: string | null;
|
|
672
|
-
addressWithoutCity: string | null;
|
|
673
|
-
price: number;
|
|
674
|
-
immediatelyAvailable: boolean;
|
|
675
|
-
startDateIfNotImmediatelyAvailableISO8601: string | null;
|
|
676
|
-
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
677
|
-
bedrooms: number | null;
|
|
678
|
-
flatmatesIfShared: number | null;
|
|
679
|
-
bathrooms: number | null;
|
|
680
|
-
surface: number | null;
|
|
681
|
-
seniorsOnly: boolean | null;
|
|
682
|
-
studentsOnly: boolean | null;
|
|
683
|
-
bathtub: boolean | null;
|
|
684
|
-
garden: boolean | null;
|
|
685
|
-
floorNumber: number | null;
|
|
686
|
-
pets: boolean | null;
|
|
687
|
-
garage: boolean | null;
|
|
688
|
-
gym: boolean | null;
|
|
689
|
-
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
690
|
-
listingRequiredGender?: "Male" | "Female" | "Other" | undefined;
|
|
691
|
-
furnishing?: "Uncarpeted" | "Unfurnished" | "Furnished" | undefined;
|
|
692
|
-
}, {
|
|
693
|
-
city: string;
|
|
694
|
-
postalCode: string | null;
|
|
695
|
-
addressWithoutCity: string | null;
|
|
696
|
-
price: number;
|
|
697
|
-
immediatelyAvailable: boolean;
|
|
698
|
-
startDateIfNotImmediatelyAvailableISO8601: string | null;
|
|
699
|
-
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
700
|
-
bedrooms: number | null;
|
|
701
|
-
flatmatesIfShared: number | null;
|
|
702
|
-
bathrooms: number | null;
|
|
703
|
-
surface: number | null;
|
|
704
|
-
seniorsOnly: boolean | null;
|
|
705
|
-
studentsOnly: boolean | null;
|
|
706
|
-
bathtub: boolean | null;
|
|
707
|
-
garden: boolean | null;
|
|
708
|
-
floorNumber: number | null;
|
|
709
|
-
pets: boolean | null;
|
|
710
|
-
garage: boolean | null;
|
|
711
|
-
gym: boolean | null;
|
|
712
|
-
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
713
|
-
listingRequiredGender?: "Male" | "Female" | "Other" | undefined;
|
|
714
|
-
furnishing?: "Uncarpeted" | "Unfurnished" | "Furnished" | undefined;
|
|
715
|
-
}>;
|
|
646
|
+
export declare const ParsedHouseSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
716
647
|
export type ParsedHouse = z.infer<typeof ParsedHouseSchema>;
|
|
717
|
-
export declare const TransformedHouseSchema: z.ZodObject<{
|
|
718
|
-
id: z.ZodString;
|
|
719
|
-
city: z.ZodString;
|
|
720
|
-
postalCode: z.ZodNullable<z.ZodString>;
|
|
721
|
-
address: z.ZodNullable<z.ZodString>;
|
|
722
|
-
price: z.ZodNumber;
|
|
723
|
-
availability: z.ZodNullable<z.ZodString>;
|
|
724
|
-
propertyType: z.ZodEnum<["House", "Apartment", "Studio", "Room"]>;
|
|
725
|
-
bedrooms: z.ZodNullable<z.ZodNumber>;
|
|
726
|
-
flatmates: z.ZodNullable<z.ZodNumber>;
|
|
727
|
-
gender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Other"]>>;
|
|
728
|
-
flatmatesGender: z.ZodOptional<z.ZodEnum<["Male", "Female", "Mixed"]>>;
|
|
729
|
-
bathrooms: z.ZodNullable<z.ZodNumber>;
|
|
730
|
-
furnishing: z.ZodOptional<z.ZodEnum<["Uncarpeted", "Unfurnished", "Furnished"]>>;
|
|
731
|
-
surface: z.ZodNullable<z.ZodNumber>;
|
|
732
|
-
seniorsOnly: z.ZodNullable<z.ZodBoolean>;
|
|
733
|
-
studentsOnly: z.ZodNullable<z.ZodBoolean>;
|
|
734
|
-
bathtub: z.ZodNullable<z.ZodBoolean>;
|
|
735
|
-
garden: z.ZodNullable<z.ZodBoolean>;
|
|
736
|
-
floorNumber: z.ZodNullable<z.ZodNumber>;
|
|
737
|
-
pets: z.ZodNullable<z.ZodBoolean>;
|
|
738
|
-
garage: z.ZodNullable<z.ZodBoolean>;
|
|
739
|
-
gym: z.ZodNullable<z.ZodBoolean>;
|
|
740
|
-
createdAt: z.ZodString;
|
|
741
|
-
}, "strip", z.ZodTypeAny, {
|
|
742
|
-
id: string;
|
|
743
|
-
city: string;
|
|
744
|
-
createdAt: string;
|
|
745
|
-
postalCode: string | null;
|
|
746
|
-
price: number;
|
|
747
|
-
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
748
|
-
bedrooms: number | null;
|
|
749
|
-
bathrooms: number | null;
|
|
750
|
-
surface: number | null;
|
|
751
|
-
seniorsOnly: boolean | null;
|
|
752
|
-
studentsOnly: boolean | null;
|
|
753
|
-
bathtub: boolean | null;
|
|
754
|
-
garden: boolean | null;
|
|
755
|
-
floorNumber: number | null;
|
|
756
|
-
pets: boolean | null;
|
|
757
|
-
garage: boolean | null;
|
|
758
|
-
gym: boolean | null;
|
|
759
|
-
address: string | null;
|
|
760
|
-
availability: string | null;
|
|
761
|
-
flatmates: number | null;
|
|
762
|
-
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
763
|
-
gender?: "Male" | "Female" | "Other" | undefined;
|
|
764
|
-
furnishing?: "Uncarpeted" | "Unfurnished" | "Furnished" | undefined;
|
|
765
|
-
}, {
|
|
766
|
-
id: string;
|
|
767
|
-
city: string;
|
|
768
|
-
createdAt: string;
|
|
769
|
-
postalCode: string | null;
|
|
770
|
-
price: number;
|
|
771
|
-
propertyType: "House" | "Apartment" | "Studio" | "Room";
|
|
772
|
-
bedrooms: number | null;
|
|
773
|
-
bathrooms: number | null;
|
|
774
|
-
surface: number | null;
|
|
775
|
-
seniorsOnly: boolean | null;
|
|
776
|
-
studentsOnly: boolean | null;
|
|
777
|
-
bathtub: boolean | null;
|
|
778
|
-
garden: boolean | null;
|
|
779
|
-
floorNumber: number | null;
|
|
780
|
-
pets: boolean | null;
|
|
781
|
-
garage: boolean | null;
|
|
782
|
-
gym: boolean | null;
|
|
783
|
-
address: string | null;
|
|
784
|
-
availability: string | null;
|
|
785
|
-
flatmates: number | null;
|
|
786
|
-
flatmatesGender?: "Male" | "Female" | "Mixed" | undefined;
|
|
787
|
-
gender?: "Male" | "Female" | "Other" | undefined;
|
|
788
|
-
furnishing?: "Uncarpeted" | "Unfurnished" | "Furnished" | undefined;
|
|
789
|
-
}>;
|
|
648
|
+
export declare const TransformedHouseSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
790
649
|
export type TransformedHouse = z.infer<typeof TransformedHouseSchema>;
|
|
791
650
|
//# 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,EAAW,MAAM,KAAK,CAAC;AAGjC,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAEhF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmErB,CAAC;AAEX,eAAO,MAAM,MAAM,y1BAmET,CAAC;AAEX,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAEpC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBF,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;;;;;;;;;;;;EAIrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,iBAAiB,gDAuB5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB,gDAyB/B,CAAA;AAEJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -332,51 +332,52 @@ export const UserSchema = z.object({
|
|
|
332
332
|
lastNotified: z.string().datetime().optional(),
|
|
333
333
|
});
|
|
334
334
|
export const ParsedHouseSchema = z.object({
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
335
|
+
/* city: z.string().nonempty(),
|
|
336
|
+
postalCode: z.string().nonempty().nullable(),
|
|
337
|
+
addressWithoutCity: z.string().nullable(),
|
|
338
|
+
price: z.number(),
|
|
339
|
+
immediatelyAvailable: z.boolean(),
|
|
340
|
+
startDateIfNotImmediatelyAvailableISO8601: z.string().datetime().nullable(),
|
|
341
|
+
propertyType: z.enum(PROPERTY_TYPES),
|
|
342
|
+
bedrooms: z.number().nullable(),
|
|
343
|
+
flatmatesIfShared: z.number().nullable(),
|
|
344
|
+
listingRequiredGender: z.enum(GENDERS).nullable(),
|
|
345
|
+
flatmatesGender: z.enum(FLATMATES_GENDERS).nullable(),
|
|
346
|
+
bathrooms: z.number().nullable(),
|
|
347
|
+
furnishing: z.enum(["Uncarpeted", "Unfurnished", "Furnished"]).nullable(),
|
|
348
|
+
surface: z.number().nullable(),
|
|
349
|
+
seniorsOnly: z.boolean().nullable(),
|
|
350
|
+
studentsOnly: z.boolean().nullable(),
|
|
351
|
+
bathtub: z.boolean().nullable(),
|
|
352
|
+
garden: z.boolean().nullable(),
|
|
353
|
+
floorNumber: z.number().nullable(),
|
|
354
|
+
pets: z.boolean().nullable(),
|
|
355
|
+
garage: z.boolean().nullable(),
|
|
356
|
+
gym: z.boolean().nullable(), */
|
|
357
357
|
});
|
|
358
|
-
export const TransformedHouseSchema = z
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
358
|
+
export const TransformedHouseSchema = z
|
|
359
|
+
.object({
|
|
360
|
+
/* id: z.string().nonempty(),
|
|
361
|
+
city: z.string().nonempty(),
|
|
362
|
+
postalCode: z.string().nullable(),
|
|
363
|
+
address: z.string().nullable(),
|
|
364
|
+
price: z.number(),
|
|
365
|
+
availability: z.string().datetime().nullable(),
|
|
366
|
+
propertyType: z.enum(PROPERTY_TYPES),
|
|
367
|
+
bedrooms: z.number().nullable(),
|
|
368
|
+
flatmates: z.number().nullable(),
|
|
369
|
+
gender: z.enum(GENDERS).nullable(),
|
|
370
|
+
flatmatesGender: z.enum(FLATMATES_GENDERS).nullable(),
|
|
371
|
+
bathrooms: z.number().nullable(),
|
|
372
|
+
furnishing: z.enum(["Uncarpeted", "Unfurnished", "Furnished"]).nullable(),
|
|
373
|
+
surface: z.number().nullable(),
|
|
374
|
+
seniorsOnly: z.boolean().nullable(),
|
|
375
|
+
studentsOnly: z.boolean().nullable(),
|
|
376
|
+
bathtub: z.boolean().nullable(),
|
|
377
|
+
garden: z.boolean().nullable(),
|
|
378
|
+
floorNumber: z.number().nullable(),
|
|
379
|
+
pets: z.boolean().nullable(),
|
|
380
|
+
garage: z.boolean().nullable(),
|
|
381
|
+
gym: z.boolean().nullable(),
|
|
382
|
+
createdAt: z.string().datetime(), */
|
|
382
383
|
});
|