hububb-saas-shared 1.0.95 → 1.0.96

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.
@@ -8,6 +8,7 @@ export declare const ratePlanSchema: import("zod").ZodObject<{
8
8
  channexRatePlanId: import("zod").ZodString;
9
9
  createdAt: import("zod").ZodDate;
10
10
  updatedAt: import("zod").ZodDate;
11
+ originalRatePlanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
11
12
  }, "strip", import("zod").ZodTypeAny, {
12
13
  currency: string;
13
14
  name: string;
@@ -18,6 +19,7 @@ export declare const ratePlanSchema: import("zod").ZodObject<{
18
19
  occupancy: number;
19
20
  rate: number;
20
21
  channexRatePlanId: string;
22
+ originalRatePlanId?: number | null | undefined;
21
23
  }, {
22
24
  currency: string;
23
25
  name: string;
@@ -28,4 +30,5 @@ export declare const ratePlanSchema: import("zod").ZodObject<{
28
30
  occupancy: number;
29
31
  rate: number;
30
32
  channexRatePlanId: string;
33
+ originalRatePlanId?: number | null | undefined;
31
34
  }>;
@@ -12,4 +12,5 @@ exports.ratePlanSchema = (0, zod_1.object)({
12
12
  channexRatePlanId: (0, zod_1.string)(),
13
13
  createdAt: (0, zod_1.date)(),
14
14
  updatedAt: (0, zod_1.date)(),
15
+ originalRatePlanId: (0, zod_1.number)().int().nullish(),
15
16
  });
@@ -9,6 +9,7 @@ export declare const roomSchema: import("zod").ZodObject<{
9
9
  updatedAt: import("zod").ZodDate;
10
10
  propertyId: import("zod").ZodNumber;
11
11
  channexId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
12
+ originalRoomId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
12
13
  }, "strip", import("zod").ZodTypeAny, {
13
14
  id: number;
14
15
  title: string;
@@ -20,6 +21,7 @@ export declare const roomSchema: import("zod").ZodObject<{
20
21
  infants: number;
21
22
  count: number;
22
23
  channexId?: string | null | undefined;
24
+ originalRoomId?: number | null | undefined;
23
25
  }, {
24
26
  id: number;
25
27
  title: string;
@@ -31,4 +33,5 @@ export declare const roomSchema: import("zod").ZodObject<{
31
33
  infants: number;
32
34
  count: number;
33
35
  channexId?: string | null | undefined;
36
+ originalRoomId?: number | null | undefined;
34
37
  }>;
@@ -13,4 +13,5 @@ exports.roomSchema = (0, zod_1.object)({
13
13
  updatedAt: (0, zod_1.date)(),
14
14
  propertyId: (0, zod_1.number)().int(),
15
15
  channexId: (0, zod_1.string)().nullish(),
16
+ originalRoomId: (0, zod_1.number)().int().nullish(),
16
17
  });
@@ -3,4 +3,6 @@ import { ratePlanSchema } from "../../schemas/rate-plan";
3
3
  import { Room } from "../room";
4
4
  export interface RatePlan extends infer<typeof ratePlanSchema> {
5
5
  room?: Room;
6
+ originalRatePlan?: RatePlan;
7
+ derivedRatePlans?: RatePlan[];
6
8
  }
@@ -9,4 +9,6 @@ export interface Room extends infer<typeof roomSchema> {
9
9
  property?: Property;
10
10
  reservationRooms?: ReservationRoom[];
11
11
  blockedDates?: BlockedDate[];
12
+ originalRoom?: Room;
13
+ derivedRooms?: Room[];
12
14
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.95",
4
+ "version": "1.0.96",
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",