hububb-saas-shared 1.2.10 → 1.2.12
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.
- package/dist/schemas/ai-agent/index.d.ts +3 -0
- package/dist/schemas/ai-agent/index.js +3 -0
- package/dist/schemas/ai-agent/property-manager-config.d.ts +16 -0
- package/dist/schemas/ai-agent/property-manager-config.js +11 -0
- package/dist/schemas/ai-agent/property-manager-session.d.ts +45 -0
- package/dist/schemas/ai-agent/property-manager-session.js +20 -0
- package/dist/schemas/ai-agent/property-manager-suggestion.d.ts +27 -0
- package/dist/schemas/ai-agent/property-manager-suggestion.js +14 -0
- package/dist/types/ai-agent/index.d.ts +3 -0
- package/dist/types/ai-agent/index.js +3 -0
- package/dist/types/ai-agent/property-ai-agent-subscription.d.ts +2 -0
- package/dist/types/ai-agent/property-manager-config.d.ts +6 -0
- package/dist/types/ai-agent/property-manager-config.js +2 -0
- package/dist/types/ai-agent/property-manager-session.d.ts +6 -0
- package/dist/types/ai-agent/property-manager-session.js +2 -0
- package/dist/types/ai-agent/property-manager-suggestion.d.ts +8 -0
- package/dist/types/ai-agent/property-manager-suggestion.js +2 -0
- package/dist/types/enums/index.d.ts +20 -1
- package/dist/types/enums/index.js +24 -1
- package/package.json +1 -1
|
@@ -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,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { PropertyManagerSessionStatus, PropertyManagerSessionType } from "../../types/enums";
|
|
3
|
+
export declare const propertyManagerSessionSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
initiatedBy: z.ZodString;
|
|
6
|
+
sessionType: z.ZodNativeEnum<typeof PropertyManagerSessionType>;
|
|
7
|
+
status: z.ZodNativeEnum<typeof PropertyManagerSessionStatus>;
|
|
8
|
+
fileUrls: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
fileNames: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
messages: z.ZodUnknown;
|
|
11
|
+
analysisSummary: z.ZodOptional<z.ZodString>;
|
|
12
|
+
analysisStartedAt: z.ZodOptional<z.ZodDate>;
|
|
13
|
+
analysisCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
14
|
+
appliedAt: z.ZodOptional<z.ZodDate>;
|
|
15
|
+
createdAt: z.ZodDate;
|
|
16
|
+
updatedAt: z.ZodDate;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
id: string;
|
|
19
|
+
status: PropertyManagerSessionStatus;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
initiatedBy: string;
|
|
23
|
+
sessionType: PropertyManagerSessionType;
|
|
24
|
+
fileUrls: string[];
|
|
25
|
+
fileNames: string[];
|
|
26
|
+
appliedAt?: Date | undefined;
|
|
27
|
+
messages?: unknown;
|
|
28
|
+
analysisSummary?: string | undefined;
|
|
29
|
+
analysisStartedAt?: Date | undefined;
|
|
30
|
+
analysisCompletedAt?: Date | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
id: string;
|
|
33
|
+
status: PropertyManagerSessionStatus;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
initiatedBy: string;
|
|
37
|
+
sessionType: PropertyManagerSessionType;
|
|
38
|
+
fileUrls: string[];
|
|
39
|
+
fileNames: string[];
|
|
40
|
+
appliedAt?: Date | undefined;
|
|
41
|
+
messages?: unknown;
|
|
42
|
+
analysisSummary?: string | undefined;
|
|
43
|
+
analysisStartedAt?: Date | undefined;
|
|
44
|
+
analysisCompletedAt?: Date | undefined;
|
|
45
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
sessionType: (0, zod_1.nativeEnum)(enums_1.PropertyManagerSessionType),
|
|
10
|
+
status: (0, zod_1.nativeEnum)(enums_1.PropertyManagerSessionStatus),
|
|
11
|
+
fileUrls: (0, zod_1.array)((0, zod_1.string)()),
|
|
12
|
+
fileNames: (0, zod_1.array)((0, zod_1.string)()),
|
|
13
|
+
messages: zod_1.z.unknown(), // serialized array of messages
|
|
14
|
+
analysisSummary: (0, zod_1.string)().optional(),
|
|
15
|
+
analysisStartedAt: (0, zod_1.date)().optional(),
|
|
16
|
+
analysisCompletedAt: (0, zod_1.date)().optional(),
|
|
17
|
+
appliedAt: (0, zod_1.date)().optional(),
|
|
18
|
+
createdAt: (0, zod_1.date)(),
|
|
19
|
+
updatedAt: (0, zod_1.date)(),
|
|
20
|
+
});
|
|
@@ -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,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,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
|
+
}
|
|
@@ -92,7 +92,26 @@ 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"
|
|
111
|
+
}
|
|
112
|
+
export declare enum PropertyManagerSessionType {
|
|
113
|
+
DOCUMENT_ANALYSIS = "DOCUMENT_ANALYSIS",
|
|
114
|
+
PROPERTY_AUDIT = "PROPERTY_AUDIT"
|
|
96
115
|
}
|
|
97
116
|
export declare enum HumanReviewPriority {
|
|
98
117
|
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.PropertyManagerSessionType = 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,30 @@ 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 = {}));
|
|
137
|
+
var PropertyManagerSessionType;
|
|
138
|
+
(function (PropertyManagerSessionType) {
|
|
139
|
+
PropertyManagerSessionType["DOCUMENT_ANALYSIS"] = "DOCUMENT_ANALYSIS";
|
|
140
|
+
PropertyManagerSessionType["PROPERTY_AUDIT"] = "PROPERTY_AUDIT";
|
|
141
|
+
})(PropertyManagerSessionType || (exports.PropertyManagerSessionType = PropertyManagerSessionType = {}));
|
|
119
142
|
var HumanReviewPriority;
|
|
120
143
|
(function (HumanReviewPriority) {
|
|
121
144
|
HumanReviewPriority["LOW"] = "LOW";
|