house-types 2.6.0 → 2.7.0

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
@@ -1,4 +1,6 @@
1
1
  import { z } from "zod";
2
+ declare const propertyType: z.ZodEnum<["house", "apartment", "studio", "room"]>;
3
+ export type PropertyType = z.infer<typeof propertyType>;
2
4
  export declare const AlertSchema: z.ZodObject<{
3
5
  city: z.ZodString;
4
6
  maxPrice: z.ZodEffects<z.ZodString, number, string>;
@@ -69,7 +71,7 @@ export declare const UserSchema: z.ZodObject<{
69
71
  lastNotified?: string | undefined;
70
72
  }>;
71
73
  export type User = z.infer<typeof UserSchema>;
72
- export declare const ParseHouseSchema: z.ZodObject<{
74
+ export declare const ParsedHouseSchema: z.ZodObject<{
73
75
  id: z.ZodString;
74
76
  city: z.ZodString;
75
77
  price: z.ZodString;
@@ -112,7 +114,7 @@ export declare const ParseHouseSchema: z.ZodObject<{
112
114
  furnished?: boolean | undefined;
113
115
  image?: string | undefined;
114
116
  }>;
115
- export type ParseHouseSchema = z.infer<typeof ParseHouseSchema>;
117
+ export type ParsedHouse = z.infer<typeof ParsedHouseSchema>;
116
118
  export declare const TransformedHouseSchema: z.ZodObject<{
117
119
  price: z.ZodNumber;
118
120
  propertyType: z.ZodEnum<["house", "apartment", "studio", "room"]>;
@@ -156,5 +158,6 @@ export declare const TransformedHouseSchema: z.ZodObject<{
156
158
  furnished?: boolean | undefined;
157
159
  image?: string | undefined;
158
160
  }>;
159
- export type TransformedHouseSchema = z.infer<typeof TransformedHouseSchema>;
161
+ export type TransformedHouse = z.infer<typeof TransformedHouseSchema>;
162
+ export {};
160
163
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;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;;;;;;;;;;;;;;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
@@ -16,7 +16,7 @@ export const UserSchema = z.object({
16
16
  lastNotified: z.string().datetime().optional(),
17
17
  alert: AlertSchema,
18
18
  });
19
- const parseHouseSchema = {
19
+ const parsedHouseSchema = {
20
20
  id: z.string(),
21
21
  city: z.string(),
22
22
  price: z.string(),
@@ -31,11 +31,11 @@ const parseHouseSchema = {
31
31
  image: z.string().optional(),
32
32
  createdAt: z.string().datetime(),
33
33
  };
34
- export const ParseHouseSchema = z.object({
35
- ...parseHouseSchema
34
+ export const ParsedHouseSchema = z.object({
35
+ ...parsedHouseSchema
36
36
  });
37
37
  export const TransformedHouseSchema = z.object({
38
- ...parseHouseSchema,
38
+ ...parsedHouseSchema,
39
39
  price: z.number(),
40
40
  propertyType,
41
41
  bedrooms: z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "house-types",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",