hububb-saas-shared 1.0.16 → 1.0.18

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.
@@ -196,7 +196,7 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
196
196
  latitude?: number | undefined;
197
197
  longitude?: number | undefined;
198
198
  }>>;
199
- amenities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
199
+ amenities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
200
200
  }, "strip", import("zod").ZodTypeAny, {
201
201
  address?: {
202
202
  state?: string | undefined;
@@ -244,7 +244,7 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
244
244
  minimumNights?: number | undefined;
245
245
  maximumNights?: number | undefined;
246
246
  } | undefined;
247
- amenities?: string[] | undefined;
247
+ amenities?: number[] | undefined;
248
248
  }, {
249
249
  address?: {
250
250
  state?: string | undefined;
@@ -292,5 +292,5 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
292
292
  minimumNights?: number | undefined;
293
293
  maximumNights?: number | undefined;
294
294
  } | undefined;
295
- amenities?: string[] | undefined;
295
+ amenities?: number[] | undefined;
296
296
  }>;
@@ -72,5 +72,5 @@ exports.updatePropertySchema = (0, zod_1.object)({
72
72
  longitude: (0, zod_1.number)().int().optional(),
73
73
  full: (0, zod_1.string)().optional(),
74
74
  }).optional(),
75
- amenities: (0, zod_1.string)().array().optional(),
75
+ amenities: (0, zod_1.number)().array().optional(),
76
76
  });
@@ -15,7 +15,11 @@ export interface Property extends infer<typeof propertySchema> {
15
15
  reservations?: Reservation[];
16
16
  serviceProperties?: ServiceProperty[];
17
17
  images?: Image[];
18
- amenities?: Amenity[];
18
+ amenities?: {
19
+ propertyId: number;
20
+ amenityId: number;
21
+ amenity?: Amenity;
22
+ }[];
19
23
  address?: Address;
20
24
  price?: Price;
21
25
  metadata?: PropertyMetadata;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.16",
4
+ "version": "1.0.18",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",