hububb-saas-shared 1.0.95 → 1.0.97

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.
@@ -1,6 +1,7 @@
1
1
  export declare enum ServiceType {
2
- ON_DEMAND = "FULL",
3
- SUBSCRIPTION = "PRORATED"
2
+ INTEGRATION = "INTEGRATION",
3
+ ON_DEMAND = "ON_DEMAND",
4
+ RECURRING = "RECURRING"
4
5
  }
5
6
  export declare enum TaskStatus {
6
7
  PENDING = "PENDING",
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
4
4
  var ServiceType;
5
5
  (function (ServiceType) {
6
- ServiceType["ON_DEMAND"] = "FULL";
7
- ServiceType["SUBSCRIPTION"] = "PRORATED";
6
+ ServiceType["INTEGRATION"] = "INTEGRATION";
7
+ ServiceType["ON_DEMAND"] = "ON_DEMAND";
8
+ ServiceType["RECURRING"] = "RECURRING";
8
9
  })(ServiceType || (exports.ServiceType = ServiceType = {}));
9
10
  var TaskStatus;
10
11
  (function (TaskStatus) {
@@ -233,6 +233,16 @@ export declare const updatePropertySchema: z.ZodObject<{
233
233
  thumbnailUrl: string;
234
234
  sortOrder: number;
235
235
  }>, "many">>;
236
+ room: z.ZodOptional<z.ZodObject<{
237
+ id: z.ZodNumber;
238
+ title: z.ZodString;
239
+ }, "strip", z.ZodTypeAny, {
240
+ id: number;
241
+ title: string;
242
+ }, {
243
+ id: number;
244
+ title: string;
245
+ }>>;
236
246
  }, "strip", z.ZodTypeAny, {
237
247
  address?: {
238
248
  state?: string | undefined;
@@ -289,6 +299,10 @@ export declare const updatePropertySchema: z.ZodObject<{
289
299
  thumbnailUrl: string;
290
300
  sortOrder: number;
291
301
  }[] | undefined;
302
+ room?: {
303
+ id: number;
304
+ title: string;
305
+ } | undefined;
292
306
  }, {
293
307
  address?: {
294
308
  state?: string | undefined;
@@ -345,4 +359,8 @@ export declare const updatePropertySchema: z.ZodObject<{
345
359
  thumbnailUrl: string;
346
360
  sortOrder: number;
347
361
  }[] | undefined;
362
+ room?: {
363
+ id: number;
364
+ title: string;
365
+ } | undefined;
348
366
  }>;
@@ -97,4 +97,8 @@ exports.updatePropertySchema = (0, zod_1.object)({
97
97
  caption: (0, zod_1.string)(),
98
98
  }))
99
99
  .optional(),
100
+ room: (0, zod_1.object)({
101
+ id: (0, zod_1.number)(),
102
+ title: (0, zod_1.string)(),
103
+ }).optional(),
100
104
  });
@@ -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.97",
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",