hububb-saas-shared 1.2.27 → 1.2.29

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.
@@ -6,6 +6,7 @@ export * from "./rate-plan";
6
6
  export * from "./tier-pricing";
7
7
  export * from "./service";
8
8
  export * from "./reservation";
9
+ export * from "./reservation-original-unit";
9
10
  export * from "./tier-service";
10
11
  export * from "./image";
11
12
  export * from "./amenity";
@@ -22,6 +22,7 @@ __exportStar(require("./rate-plan"), exports);
22
22
  __exportStar(require("./tier-pricing"), exports);
23
23
  __exportStar(require("./service"), exports);
24
24
  __exportStar(require("./reservation"), exports);
25
+ __exportStar(require("./reservation-original-unit"), exports);
25
26
  __exportStar(require("./tier-service"), exports);
26
27
  __exportStar(require("./image"), exports);
27
28
  __exportStar(require("./amenity"), exports);
@@ -363,6 +363,7 @@ export declare const updatePropertySchema: z.ZodObject<{
363
363
  type?: "AIRBNB" | "BOOKING_COM" | null | undefined;
364
364
  status?: "PENDING" | "IN_PROGRESS" | "COMPLETED" | "REJECTED" | null | undefined;
365
365
  }>, "many">>;
366
+ preservePendingConnectionRequests: z.ZodOptional<z.ZodBoolean>;
366
367
  managementTierId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
367
368
  customBundleId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
368
369
  }, "strip", z.ZodTypeAny, {
@@ -465,6 +466,7 @@ export declare const updatePropertySchema: z.ZodObject<{
465
466
  type?: "AIRBNB" | "BOOKING_COM" | null | undefined;
466
467
  status?: "PENDING" | "IN_PROGRESS" | "COMPLETED" | "REJECTED" | null | undefined;
467
468
  }[] | undefined;
469
+ preservePendingConnectionRequests?: boolean | undefined;
468
470
  }, {
469
471
  address?: {
470
472
  state?: string | undefined;
@@ -565,4 +567,5 @@ export declare const updatePropertySchema: z.ZodObject<{
565
567
  type?: "AIRBNB" | "BOOKING_COM" | null | undefined;
566
568
  status?: "PENDING" | "IN_PROGRESS" | "COMPLETED" | "REJECTED" | null | undefined;
567
569
  }[] | undefined;
570
+ preservePendingConnectionRequests?: boolean | undefined;
568
571
  }>;
@@ -177,6 +177,7 @@ exports.updatePropertySchema = (0, zod_1.object)({
177
177
  type: zod_1.z.enum(["AIRBNB", "BOOKING_COM"]).nullish(),
178
178
  }))
179
179
  .optional(),
180
+ preservePendingConnectionRequests: zod_1.z.boolean().optional(),
180
181
  managementTierId: (0, zod_1.number)().int().nullish(),
181
182
  customBundleId: (0, zod_1.number)().int().nullish(),
182
183
  });
@@ -0,0 +1,25 @@
1
+ export declare const reservationOriginalUnitSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ reservationId: import("zod").ZodNumber;
4
+ createdAt: import("zod").ZodDate;
5
+ updatedAt: import("zod").ZodDate;
6
+ roomId: import("zod").ZodNumber;
7
+ propertyId: import("zod").ZodNumber;
8
+ channexPropertyId: import("zod").ZodString;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ id: number;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ propertyId: number;
14
+ roomId: number;
15
+ reservationId: number;
16
+ channexPropertyId: string;
17
+ }, {
18
+ id: number;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ propertyId: number;
22
+ roomId: number;
23
+ reservationId: number;
24
+ channexPropertyId: string;
25
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reservationOriginalUnitSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.reservationOriginalUnitSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ reservationId: (0, zod_1.number)().int(),
8
+ createdAt: (0, zod_1.date)(),
9
+ updatedAt: (0, zod_1.date)(),
10
+ roomId: (0, zod_1.number)().int(),
11
+ propertyId: (0, zod_1.number)().int(),
12
+ channexPropertyId: (0, zod_1.string)(),
13
+ });
@@ -6,6 +6,7 @@ export * from "./rate-plan";
6
6
  export * from "./tier-pricing";
7
7
  export * from "./service";
8
8
  export * from "./reservation";
9
+ export * from "./reservation-original-unit";
9
10
  export * from "./tier-service";
10
11
  export * from "./image";
11
12
  export * from "./amenity";
@@ -22,6 +22,7 @@ __exportStar(require("./rate-plan"), exports);
22
22
  __exportStar(require("./tier-pricing"), exports);
23
23
  __exportStar(require("./service"), exports);
24
24
  __exportStar(require("./reservation"), exports);
25
+ __exportStar(require("./reservation-original-unit"), exports);
25
26
  __exportStar(require("./tier-service"), exports);
26
27
  __exportStar(require("./image"), exports);
27
28
  __exportStar(require("./amenity"), exports);
@@ -29,6 +29,7 @@ import { AgentThreadSession } from "../ai-agent/agent-thread-session";
29
29
  import { AgentActionLog } from "../ai-agent/agent-action-log";
30
30
  import { HumanReviewTask } from "../ai-agent/human-review-task";
31
31
  import { RevenueManagerRunLog } from "../ai-agent/revenue-manager-run-log";
32
+ import { ReservationOriginalUnit } from "../reservation-original-unit";
32
33
  export interface Property extends infer<typeof propertySchema> {
33
34
  user?: User;
34
35
  rooms?: Room[];
@@ -64,6 +65,7 @@ export interface Property extends infer<typeof propertySchema> {
64
65
  agentActionLogs?: AgentActionLog[];
65
66
  humanReviewTasks?: HumanReviewTask[];
66
67
  revenueManagerRunLogs?: RevenueManagerRunLog[];
68
+ reservationOriginalUnits?: ReservationOriginalUnit[];
67
69
  }
68
70
  export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
69
71
  }
@@ -5,6 +5,7 @@ import { ReservationRoom } from "../room-reservation";
5
5
  import { Room } from "../room";
6
6
  import { Task } from "../task";
7
7
  import { Payout } from "../payout";
8
+ import { ReservationOriginalUnit } from "../reservation-original-unit";
8
9
  export interface Reservation extends infer<typeof ReservationSchema> {
9
10
  property?: Property;
10
11
  customer?: ReservationCustomer;
@@ -14,6 +15,7 @@ export interface Reservation extends infer<typeof ReservationSchema> {
14
15
  tasks?: Task[];
15
16
  payout?: Payout;
16
17
  finance?: ReservationFinance;
18
+ originalUnit?: ReservationOriginalUnit;
17
19
  }
18
20
  export interface ReservationFinance extends infer<typeof ReservationFinanceSchema> {
19
21
  reservation?: Reservation;
@@ -0,0 +1,10 @@
1
+ import { infer } from "zod";
2
+ import { reservationOriginalUnitSchema } from "../../schemas/reservation-original-unit";
3
+ import { Property } from "../property";
4
+ import { Reservation } from "../reservation";
5
+ import { Room } from "../room";
6
+ export interface ReservationOriginalUnit extends infer<typeof reservationOriginalUnitSchema> {
7
+ reservation?: Reservation;
8
+ room?: Room;
9
+ property?: Property;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@ import { ReportingHandbook } from "../reporting-handbook";
9
9
  import { CleaningChecklist } from "../cleaning-checklist";
10
10
  import { SuppliesAndNotesHandbook } from "../supplies-and-notes-handbook";
11
11
  import { Task } from "../task";
12
+ import { ReservationOriginalUnit } from "../reservation-original-unit";
12
13
  export interface Room extends infer<typeof roomSchema> {
13
14
  ratePlans?: RatePlan[];
14
15
  property?: Property;
@@ -21,4 +22,5 @@ export interface Room extends infer<typeof roomSchema> {
21
22
  cleaningChecklists?: CleaningChecklist[];
22
23
  suppliesAndNotesHandbook?: SuppliesAndNotesHandbook;
23
24
  tasks?: Task[];
25
+ reservationOriginalUnits?: ReservationOriginalUnit[];
24
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.27",
4
+ "version": "1.2.29",
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",