house-types 2.9.15 → 2.9.17

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -148,7 +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
+ id: z.string().uuid(),
152
152
  city: z.enum(CITIES),
153
153
  radius: z.enum(RADIUSES).transform(Number).optional(),
154
154
  propertyTypes: z.array(z.enum(PROPERTY_TYPES)).optional(),
@@ -163,7 +163,7 @@ export const AlertSchema = z.object({
163
163
  createdAt: z.string().datetime(),
164
164
  });
165
165
  export const AlertClientSchema = z.object({
166
- id: z.string().optional(),
166
+ id: z.string().uuid().optional(),
167
167
  city: z.string(),
168
168
  radius: z.string().optional(),
169
169
  propertyTypes: z.array(z.string()).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "house-types",
3
- "version": "2.9.15",
3
+ "version": "2.9.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",