hububb-saas-shared 1.2.10 → 1.2.11

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,3 +8,6 @@ export * from "./user-ai-agent-subscription";
8
8
  export * from "./host-coordinator-config";
9
9
  export * from "./revenue-manager-config";
10
10
  export * from "./revenue-manager-run-log";
11
+ export * from "./property-manager-config";
12
+ export * from "./property-manager-session";
13
+ export * from "./property-manager-suggestion";
@@ -24,3 +24,6 @@ __exportStar(require("./user-ai-agent-subscription"), exports);
24
24
  __exportStar(require("./host-coordinator-config"), exports);
25
25
  __exportStar(require("./revenue-manager-config"), exports);
26
26
  __exportStar(require("./revenue-manager-run-log"), exports);
27
+ __exportStar(require("./property-manager-config"), exports);
28
+ __exportStar(require("./property-manager-session"), exports);
29
+ __exportStar(require("./property-manager-suggestion"), exports);
@@ -0,0 +1,16 @@
1
+ export declare const propertyManagerConfigSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ subscriptionId: import("zod").ZodNumber;
4
+ createdAt: import("zod").ZodDate;
5
+ updatedAt: import("zod").ZodDate;
6
+ }, "strip", import("zod").ZodTypeAny, {
7
+ id: number;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ subscriptionId: number;
11
+ }, {
12
+ id: number;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ subscriptionId: number;
16
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.propertyManagerConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // Controls which field groups the agent may update for a property.
6
+ exports.propertyManagerConfigSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ subscriptionId: (0, zod_1.number)().int(),
9
+ createdAt: (0, zod_1.date)(),
10
+ updatedAt: (0, zod_1.date)(),
11
+ });
@@ -0,0 +1,42 @@
1
+ import { z } from "zod";
2
+ import { PropertyManagerSessionStatus } from "../../types/enums";
3
+ export declare const propertyManagerSessionSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ initiatedBy: z.ZodString;
6
+ status: z.ZodNativeEnum<typeof PropertyManagerSessionStatus>;
7
+ fileUrls: z.ZodArray<z.ZodString, "many">;
8
+ fileNames: z.ZodArray<z.ZodString, "many">;
9
+ messages: z.ZodUnknown;
10
+ analysisSummary: z.ZodOptional<z.ZodString>;
11
+ analysisStartedAt: z.ZodOptional<z.ZodDate>;
12
+ analysisCompletedAt: z.ZodOptional<z.ZodDate>;
13
+ appliedAt: z.ZodOptional<z.ZodDate>;
14
+ createdAt: z.ZodDate;
15
+ updatedAt: z.ZodDate;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ status: PropertyManagerSessionStatus;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ initiatedBy: string;
22
+ fileUrls: string[];
23
+ fileNames: string[];
24
+ appliedAt?: Date | undefined;
25
+ messages?: unknown;
26
+ analysisSummary?: string | undefined;
27
+ analysisStartedAt?: Date | undefined;
28
+ analysisCompletedAt?: Date | undefined;
29
+ }, {
30
+ id: string;
31
+ status: PropertyManagerSessionStatus;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ initiatedBy: string;
35
+ fileUrls: string[];
36
+ fileNames: string[];
37
+ appliedAt?: Date | undefined;
38
+ messages?: unknown;
39
+ analysisSummary?: string | undefined;
40
+ analysisStartedAt?: Date | undefined;
41
+ analysisCompletedAt?: Date | undefined;
42
+ }>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.propertyManagerSessionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.propertyManagerSessionSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ initiatedBy: (0, zod_1.string)(),
9
+ status: (0, zod_1.nativeEnum)(enums_1.PropertyManagerSessionStatus),
10
+ fileUrls: (0, zod_1.array)((0, zod_1.string)()),
11
+ fileNames: (0, zod_1.array)((0, zod_1.string)()),
12
+ messages: zod_1.z.unknown(), // serialized array of messages
13
+ analysisSummary: (0, zod_1.string)().optional(),
14
+ analysisStartedAt: (0, zod_1.date)().optional(),
15
+ analysisCompletedAt: (0, zod_1.date)().optional(),
16
+ appliedAt: (0, zod_1.date)().optional(),
17
+ createdAt: (0, zod_1.date)(),
18
+ updatedAt: (0, zod_1.date)(),
19
+ });
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ import { PropertyManagerSuggestionStatus } from "../../types/enums";
3
+ export declare const propertyManagerSuggestionSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ sessionId: z.ZodString;
6
+ propertyId: z.ZodNumber;
7
+ status: z.ZodNativeEnum<typeof PropertyManagerSuggestionStatus>;
8
+ changes: z.ZodUnknown;
9
+ createdAt: z.ZodDate;
10
+ updatedAt: z.ZodDate;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ status: PropertyManagerSuggestionStatus;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ propertyId: number;
17
+ sessionId: string;
18
+ changes?: unknown;
19
+ }, {
20
+ id: string;
21
+ status: PropertyManagerSuggestionStatus;
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ propertyId: number;
25
+ sessionId: string;
26
+ changes?: unknown;
27
+ }>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.propertyManagerSuggestionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.propertyManagerSuggestionSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ sessionId: (0, zod_1.string)(),
9
+ propertyId: (0, zod_1.number)().int(),
10
+ status: (0, zod_1.nativeEnum)(enums_1.PropertyManagerSuggestionStatus),
11
+ changes: zod_1.z.unknown(), // structured proposed changes
12
+ createdAt: (0, zod_1.date)(),
13
+ updatedAt: (0, zod_1.date)(),
14
+ });
@@ -8,3 +8,6 @@ export * from "./user-ai-agent-subscription";
8
8
  export * from "./host-coordinator-config";
9
9
  export * from "./revenue-manager-config";
10
10
  export * from "./revenue-manager-run-log";
11
+ export * from "./property-manager-config";
12
+ export * from "./property-manager-session";
13
+ export * from "./property-manager-suggestion";
@@ -24,3 +24,6 @@ __exportStar(require("./user-ai-agent-subscription"), exports);
24
24
  __exportStar(require("./host-coordinator-config"), exports);
25
25
  __exportStar(require("./revenue-manager-config"), exports);
26
26
  __exportStar(require("./revenue-manager-run-log"), exports);
27
+ __exportStar(require("./property-manager-config"), exports);
28
+ __exportStar(require("./property-manager-session"), exports);
29
+ __exportStar(require("./property-manager-suggestion"), exports);
@@ -5,6 +5,7 @@ import { AiAgent } from "./ai-agent";
5
5
  import { GuestCoordinatorConfig } from "./guest-coordinator-config";
6
6
  import { RevenueManagerConfig } from "./revenue-manager-config";
7
7
  import { HostCoordinatorConfig } from "./host-coordinator-config";
8
+ import { PropertyManagerConfig } from "./property-manager-config";
8
9
  import { AgentThreadSession } from "./agent-thread-session";
9
10
  import { AgentActionLog } from "./agent-action-log";
10
11
  import { HumanReviewTask } from "./human-review-task";
@@ -14,6 +15,7 @@ export interface PropertyAiAgentSubscription extends infer<typeof propertyAiAgen
14
15
  guestCoordinatorConfig?: GuestCoordinatorConfig;
15
16
  revenueManagerConfig?: RevenueManagerConfig;
16
17
  hostCoordinatorConfig?: HostCoordinatorConfig;
18
+ propertyManagerConfig?: PropertyManagerConfig;
17
19
  threadSessions?: AgentThreadSession[];
18
20
  actionLogs?: AgentActionLog[];
19
21
  humanReviewTasks?: HumanReviewTask[];
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { propertyManagerConfigSchema } from "../../schemas/ai-agent";
3
+ import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
4
+ export interface PropertyManagerConfig extends infer<typeof propertyManagerConfigSchema> {
5
+ subscription?: PropertyAiAgentSubscription;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { propertyManagerSessionSchema } from "../../schemas/ai-agent";
3
+ import { PropertyManagerSuggestion } from "./property-manager-suggestion";
4
+ export interface PropertyManagerSession extends infer<typeof propertyManagerSessionSchema> {
5
+ suggestions?: PropertyManagerSuggestion[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { propertyManagerSuggestionSchema } from "../../schemas/ai-agent";
3
+ import { PropertyManagerSession } from "./property-manager-session";
4
+ import { Property } from "../property";
5
+ export interface PropertyManagerSuggestion extends infer<typeof propertyManagerSuggestionSchema> {
6
+ session?: PropertyManagerSession;
7
+ property?: Property;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -92,7 +92,22 @@ export declare enum AgentActionType {
92
92
  NOTE_SAVED = "NOTE_SAVED",
93
93
  HOST_NOTIFIED = "HOST_NOTIFIED",
94
94
  SKIPPED = "SKIPPED",
95
- PRICING_UPDATED = "PRICING_UPDATED"
95
+ PRICING_UPDATED = "PRICING_UPDATED",
96
+ PROPERTY_UPDATED = "PROPERTY_UPDATED"
97
+ }
98
+ export declare enum PropertyManagerSessionStatus {
99
+ ANALYZING = "ANALYZING",
100
+ PENDING_REVIEW = "PENDING_REVIEW",
101
+ APPLYING = "APPLYING",
102
+ COMPLETED = "COMPLETED",
103
+ FAILED = "FAILED"
104
+ }
105
+ export declare enum PropertyManagerSuggestionStatus {
106
+ PENDING = "PENDING",
107
+ APPROVED = "APPROVED",
108
+ REJECTED = "REJECTED",
109
+ APPLIED = "APPLIED",
110
+ FAILED = "FAILED"
96
111
  }
97
112
  export declare enum HumanReviewPriority {
98
113
  LOW = "LOW",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HumanReviewStatus = exports.HumanReviewPriority = exports.AgentActionType = exports.AgentSessionStatus = exports.GuestCoordinatorResponseStyle = exports.AiAgentCategory = exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
3
+ exports.HumanReviewStatus = exports.HumanReviewPriority = exports.PropertyManagerSuggestionStatus = exports.PropertyManagerSessionStatus = exports.AgentActionType = exports.AgentSessionStatus = exports.GuestCoordinatorResponseStyle = exports.AiAgentCategory = exports.PropertyType = exports.OnboardingType = exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceCategory = exports.ServiceGroup = exports.ServiceType = void 0;
4
4
  var ServiceType;
5
5
  (function (ServiceType) {
6
6
  ServiceType["INTEGRATION"] = "INTEGRATION";
@@ -115,7 +115,25 @@ var AgentActionType;
115
115
  AgentActionType["HOST_NOTIFIED"] = "HOST_NOTIFIED";
116
116
  AgentActionType["SKIPPED"] = "SKIPPED";
117
117
  AgentActionType["PRICING_UPDATED"] = "PRICING_UPDATED";
118
+ AgentActionType["PROPERTY_UPDATED"] = "PROPERTY_UPDATED";
118
119
  })(AgentActionType || (exports.AgentActionType = AgentActionType = {}));
120
+ // Property Manager (document analysis / apply flow)
121
+ var PropertyManagerSessionStatus;
122
+ (function (PropertyManagerSessionStatus) {
123
+ PropertyManagerSessionStatus["ANALYZING"] = "ANALYZING";
124
+ PropertyManagerSessionStatus["PENDING_REVIEW"] = "PENDING_REVIEW";
125
+ PropertyManagerSessionStatus["APPLYING"] = "APPLYING";
126
+ PropertyManagerSessionStatus["COMPLETED"] = "COMPLETED";
127
+ PropertyManagerSessionStatus["FAILED"] = "FAILED";
128
+ })(PropertyManagerSessionStatus || (exports.PropertyManagerSessionStatus = PropertyManagerSessionStatus = {}));
129
+ var PropertyManagerSuggestionStatus;
130
+ (function (PropertyManagerSuggestionStatus) {
131
+ PropertyManagerSuggestionStatus["PENDING"] = "PENDING";
132
+ PropertyManagerSuggestionStatus["APPROVED"] = "APPROVED";
133
+ PropertyManagerSuggestionStatus["REJECTED"] = "REJECTED";
134
+ PropertyManagerSuggestionStatus["APPLIED"] = "APPLIED";
135
+ PropertyManagerSuggestionStatus["FAILED"] = "FAILED";
136
+ })(PropertyManagerSuggestionStatus || (exports.PropertyManagerSuggestionStatus = PropertyManagerSuggestionStatus = {}));
119
137
  var HumanReviewPriority;
120
138
  (function (HumanReviewPriority) {
121
139
  HumanReviewPriority["LOW"] = "LOW";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.10",
4
+ "version": "1.2.11",
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",