hububb-saas-shared 1.2.9 → 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.
- package/dist/schemas/ai-agent/index.d.ts +4 -0
- package/dist/schemas/ai-agent/index.js +4 -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 +42 -0
- package/dist/schemas/ai-agent/property-manager-session.js +19 -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/schemas/ai-agent/revenue-manager-run-log.d.ts +56 -0
- package/dist/schemas/ai-agent/revenue-manager-run-log.js +24 -0
- package/dist/schemas/channex/booking.d.ts +2 -2
- package/dist/schemas/channex/thread.d.ts +2 -2
- package/dist/schemas/enums/index.d.ts +45 -0
- package/dist/schemas/enums/index.js +56 -0
- package/dist/schemas/service-property/index.d.ts +19 -0
- package/dist/schemas/service-property/index.js +11 -0
- package/dist/schemas/task-checklist-item/index.d.ts +2 -2
- package/dist/schemas/thread/index.d.ts +6 -6
- package/dist/types/ai-agent/index.d.ts +4 -0
- package/dist/types/ai-agent/index.js +4 -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/ai-agent/revenue-manager-run-log.d.ts +8 -0
- package/dist/types/ai-agent/revenue-manager-run-log.js +2 -0
- package/dist/types/enums/index.d.ts +16 -1
- package/dist/types/enums/index.js +19 -1
- package/dist/types/property/index.d.ts +2 -0
- package/dist/types/service-property/index.d.ts +8 -0
- package/dist/types/service-property/index.js +2 -0
- package/package.json +1 -1
|
@@ -7,3 +7,7 @@ export * from "./human-review-task";
|
|
|
7
7
|
export * from "./user-ai-agent-subscription";
|
|
8
8
|
export * from "./host-coordinator-config";
|
|
9
9
|
export * from "./revenue-manager-config";
|
|
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";
|
|
@@ -23,3 +23,7 @@ __exportStar(require("./human-review-task"), exports);
|
|
|
23
23
|
__exportStar(require("./user-ai-agent-subscription"), exports);
|
|
24
24
|
__exportStar(require("./host-coordinator-config"), exports);
|
|
25
25
|
__exportStar(require("./revenue-manager-config"), exports);
|
|
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
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const revenueManagerRunLogSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
subscriptionId: z.ZodNumber;
|
|
5
|
+
propertyId: z.ZodNumber;
|
|
6
|
+
startedAt: z.ZodDate;
|
|
7
|
+
completedAt: z.ZodOptional<z.ZodDate>;
|
|
8
|
+
succeeded: z.ZodBoolean;
|
|
9
|
+
daysProcessed: z.ZodNumber;
|
|
10
|
+
daysSkipped: z.ZodNumber;
|
|
11
|
+
minPrice: z.ZodNumber;
|
|
12
|
+
maxPrice: z.ZodNumber;
|
|
13
|
+
avgPrice: z.ZodNumber;
|
|
14
|
+
currency: z.ZodString;
|
|
15
|
+
summaryNote: z.ZodString;
|
|
16
|
+
channexSynced: z.ZodBoolean;
|
|
17
|
+
eventDaysDetected: z.ZodNumber;
|
|
18
|
+
priceSummary: z.ZodUnknown;
|
|
19
|
+
createdAt: z.ZodDate;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
currency: string;
|
|
22
|
+
id: string;
|
|
23
|
+
succeeded: boolean;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
propertyId: number;
|
|
26
|
+
minPrice: number;
|
|
27
|
+
maxPrice: number;
|
|
28
|
+
startedAt: Date;
|
|
29
|
+
subscriptionId: number;
|
|
30
|
+
daysProcessed: number;
|
|
31
|
+
daysSkipped: number;
|
|
32
|
+
avgPrice: number;
|
|
33
|
+
summaryNote: string;
|
|
34
|
+
channexSynced: boolean;
|
|
35
|
+
eventDaysDetected: number;
|
|
36
|
+
completedAt?: Date | undefined;
|
|
37
|
+
priceSummary?: unknown;
|
|
38
|
+
}, {
|
|
39
|
+
currency: string;
|
|
40
|
+
id: string;
|
|
41
|
+
succeeded: boolean;
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
propertyId: number;
|
|
44
|
+
minPrice: number;
|
|
45
|
+
maxPrice: number;
|
|
46
|
+
startedAt: Date;
|
|
47
|
+
subscriptionId: number;
|
|
48
|
+
daysProcessed: number;
|
|
49
|
+
daysSkipped: number;
|
|
50
|
+
avgPrice: number;
|
|
51
|
+
summaryNote: string;
|
|
52
|
+
channexSynced: boolean;
|
|
53
|
+
eventDaysDetected: number;
|
|
54
|
+
completedAt?: Date | undefined;
|
|
55
|
+
priceSummary?: unknown;
|
|
56
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.revenueManagerRunLogSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.revenueManagerRunLogSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.string)(),
|
|
7
|
+
subscriptionId: (0, zod_1.number)().int(),
|
|
8
|
+
propertyId: (0, zod_1.number)().int(),
|
|
9
|
+
startedAt: (0, zod_1.date)(),
|
|
10
|
+
completedAt: (0, zod_1.date)().optional(),
|
|
11
|
+
succeeded: (0, zod_1.boolean)(),
|
|
12
|
+
daysProcessed: (0, zod_1.number)().int(),
|
|
13
|
+
daysSkipped: (0, zod_1.number)().int(),
|
|
14
|
+
minPrice: (0, zod_1.number)(),
|
|
15
|
+
maxPrice: (0, zod_1.number)(),
|
|
16
|
+
avgPrice: (0, zod_1.number)(),
|
|
17
|
+
currency: (0, zod_1.string)(),
|
|
18
|
+
summaryNote: (0, zod_1.string)(),
|
|
19
|
+
channexSynced: (0, zod_1.boolean)(),
|
|
20
|
+
eventDaysDetected: (0, zod_1.number)().int(),
|
|
21
|
+
// Full per-date pricing breakdown — serialized JSON
|
|
22
|
+
priceSummary: zod_1.z.unknown(),
|
|
23
|
+
createdAt: (0, zod_1.date)(),
|
|
24
|
+
});
|
|
@@ -1086,9 +1086,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
|
|
|
1086
1086
|
}>;
|
|
1087
1087
|
property_id: import("zod").ZodString;
|
|
1088
1088
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1089
|
-
timestamp: string;
|
|
1090
1089
|
event: string;
|
|
1091
1090
|
property_id: string;
|
|
1091
|
+
timestamp: string;
|
|
1092
1092
|
payload: {
|
|
1093
1093
|
property_id: string;
|
|
1094
1094
|
revision_id: string;
|
|
@@ -1096,9 +1096,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
|
|
|
1096
1096
|
};
|
|
1097
1097
|
user_id?: string | null | undefined;
|
|
1098
1098
|
}, {
|
|
1099
|
-
timestamp: string;
|
|
1100
1099
|
event: string;
|
|
1101
1100
|
property_id: string;
|
|
1101
|
+
timestamp: string;
|
|
1102
1102
|
payload: {
|
|
1103
1103
|
property_id: string;
|
|
1104
1104
|
revision_id: string;
|
|
@@ -277,9 +277,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
|
277
277
|
}>;
|
|
278
278
|
property_id: import("zod").ZodString;
|
|
279
279
|
}, "strip", import("zod").ZodTypeAny, {
|
|
280
|
-
timestamp: string;
|
|
281
280
|
event: string;
|
|
282
281
|
property_id: string;
|
|
282
|
+
timestamp: string;
|
|
283
283
|
payload: {
|
|
284
284
|
message: string;
|
|
285
285
|
id: string;
|
|
@@ -294,9 +294,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
|
294
294
|
};
|
|
295
295
|
user_id?: string | null | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
timestamp: string;
|
|
298
297
|
event: string;
|
|
299
298
|
property_id: string;
|
|
299
|
+
timestamp: string;
|
|
300
300
|
payload: {
|
|
301
301
|
message: string;
|
|
302
302
|
id: string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum ServiceType {
|
|
2
|
+
INTEGRATION = "INTEGRATION",
|
|
3
|
+
ON_DEMAND = "ON_DEMAND",
|
|
4
|
+
RECURRING = "RECURRING"
|
|
5
|
+
}
|
|
6
|
+
export declare enum TaskStatus {
|
|
7
|
+
PENDING = "PENDING",
|
|
8
|
+
CONFIRMED = "CONFIRMED",
|
|
9
|
+
COMPLETED = "COMPLETED",
|
|
10
|
+
CANCELLED = "CANCELLED"
|
|
11
|
+
}
|
|
12
|
+
export declare enum TaskPriority {
|
|
13
|
+
LOW = "LOW",
|
|
14
|
+
MEDIUM = "MEDIUM",
|
|
15
|
+
HIGH = "HIGH"
|
|
16
|
+
}
|
|
17
|
+
export declare enum InvoiceType {
|
|
18
|
+
SUBSCRIPTION = "SUBSCRIPTION",
|
|
19
|
+
PURCHASE = "PURCHASE"
|
|
20
|
+
}
|
|
21
|
+
export declare enum InvoiceStatus {
|
|
22
|
+
PENDING = "PENDING",
|
|
23
|
+
PAID = "PAID",
|
|
24
|
+
CANCELLED = "CANCELLED",
|
|
25
|
+
FAILED = "FAILED"
|
|
26
|
+
}
|
|
27
|
+
export declare enum PriceType {
|
|
28
|
+
PRORATED = "PRORATED",
|
|
29
|
+
FULL = "FULL"
|
|
30
|
+
}
|
|
31
|
+
export declare enum PurchaseStatus {
|
|
32
|
+
ACTIVE = "ACTIVE",
|
|
33
|
+
CANCELLED = "CANCELLED",
|
|
34
|
+
FAILED = "FAILED"
|
|
35
|
+
}
|
|
36
|
+
export declare enum SubscriptionStatus {
|
|
37
|
+
INCOMPLETE = "INCOMPLETE",
|
|
38
|
+
INCOMPLETE_EXPIRED = "INCOMPLETE_EXPIRED",
|
|
39
|
+
TRIALING = "TRIALING",
|
|
40
|
+
ACTIVE = "ACTIVE",
|
|
41
|
+
PAST_DUE = "PAST_DUE",
|
|
42
|
+
CANCELED = "CANCELED",
|
|
43
|
+
UNPAID = "UNPAID",
|
|
44
|
+
PAUSED = "PAUSED"
|
|
45
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
|
|
4
|
+
var ServiceType;
|
|
5
|
+
(function (ServiceType) {
|
|
6
|
+
ServiceType["INTEGRATION"] = "INTEGRATION";
|
|
7
|
+
ServiceType["ON_DEMAND"] = "ON_DEMAND";
|
|
8
|
+
ServiceType["RECURRING"] = "RECURRING";
|
|
9
|
+
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
10
|
+
var TaskStatus;
|
|
11
|
+
(function (TaskStatus) {
|
|
12
|
+
TaskStatus["PENDING"] = "PENDING";
|
|
13
|
+
TaskStatus["CONFIRMED"] = "CONFIRMED";
|
|
14
|
+
TaskStatus["COMPLETED"] = "COMPLETED";
|
|
15
|
+
TaskStatus["CANCELLED"] = "CANCELLED";
|
|
16
|
+
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
17
|
+
var TaskPriority;
|
|
18
|
+
(function (TaskPriority) {
|
|
19
|
+
TaskPriority["LOW"] = "LOW";
|
|
20
|
+
TaskPriority["MEDIUM"] = "MEDIUM";
|
|
21
|
+
TaskPriority["HIGH"] = "HIGH";
|
|
22
|
+
})(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
|
|
23
|
+
var InvoiceType;
|
|
24
|
+
(function (InvoiceType) {
|
|
25
|
+
InvoiceType["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
26
|
+
InvoiceType["PURCHASE"] = "PURCHASE";
|
|
27
|
+
})(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
|
|
28
|
+
var InvoiceStatus;
|
|
29
|
+
(function (InvoiceStatus) {
|
|
30
|
+
InvoiceStatus["PENDING"] = "PENDING";
|
|
31
|
+
InvoiceStatus["PAID"] = "PAID";
|
|
32
|
+
InvoiceStatus["CANCELLED"] = "CANCELLED";
|
|
33
|
+
InvoiceStatus["FAILED"] = "FAILED";
|
|
34
|
+
})(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
|
|
35
|
+
var PriceType;
|
|
36
|
+
(function (PriceType) {
|
|
37
|
+
PriceType["PRORATED"] = "PRORATED";
|
|
38
|
+
PriceType["FULL"] = "FULL";
|
|
39
|
+
})(PriceType || (exports.PriceType = PriceType = {}));
|
|
40
|
+
var PurchaseStatus;
|
|
41
|
+
(function (PurchaseStatus) {
|
|
42
|
+
PurchaseStatus["ACTIVE"] = "ACTIVE";
|
|
43
|
+
PurchaseStatus["CANCELLED"] = "CANCELLED";
|
|
44
|
+
PurchaseStatus["FAILED"] = "FAILED";
|
|
45
|
+
})(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
|
|
46
|
+
var SubscriptionStatus;
|
|
47
|
+
(function (SubscriptionStatus) {
|
|
48
|
+
SubscriptionStatus["INCOMPLETE"] = "INCOMPLETE";
|
|
49
|
+
SubscriptionStatus["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
|
|
50
|
+
SubscriptionStatus["TRIALING"] = "TRIALING";
|
|
51
|
+
SubscriptionStatus["ACTIVE"] = "ACTIVE";
|
|
52
|
+
SubscriptionStatus["PAST_DUE"] = "PAST_DUE";
|
|
53
|
+
SubscriptionStatus["CANCELED"] = "CANCELED";
|
|
54
|
+
SubscriptionStatus["UNPAID"] = "UNPAID";
|
|
55
|
+
SubscriptionStatus["PAUSED"] = "PAUSED";
|
|
56
|
+
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const servicePropertySchema: import("zod").ZodObject<{
|
|
2
|
+
propertyId: import("zod").ZodNumber;
|
|
3
|
+
serviceId: import("zod").ZodNumber;
|
|
4
|
+
status: import("zod").ZodString;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
status: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
serviceId: number;
|
|
12
|
+
propertyId: number;
|
|
13
|
+
}, {
|
|
14
|
+
status: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
serviceId: number;
|
|
18
|
+
propertyId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.servicePropertySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.servicePropertySchema = (0, zod_1.object)({
|
|
6
|
+
propertyId: (0, zod_1.number)().int(),
|
|
7
|
+
serviceId: (0, zod_1.number)().int(),
|
|
8
|
+
status: (0, zod_1.string)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -11,15 +11,15 @@ export declare const taskChecklistItemSchema: import("zod").ZodObject<{
|
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
taskChecklistSpaceId: number;
|
|
14
|
-
completed?: boolean | undefined;
|
|
15
14
|
content?: string | undefined;
|
|
15
|
+
completed?: boolean | undefined;
|
|
16
16
|
completedAt?: Date | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
id: number;
|
|
19
19
|
createdAt: Date;
|
|
20
20
|
updatedAt: Date;
|
|
21
21
|
taskChecklistSpaceId: number;
|
|
22
|
-
completed?: boolean | undefined;
|
|
23
22
|
content?: string | undefined;
|
|
23
|
+
completed?: boolean | undefined;
|
|
24
24
|
completedAt?: Date | undefined;
|
|
25
25
|
}>;
|
|
@@ -931,7 +931,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
931
931
|
} | undefined;
|
|
932
932
|
}>>;
|
|
933
933
|
participantIds: z.ZodArray<z.ZodString, "many">;
|
|
934
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
934
|
+
participants: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
935
935
|
id: z.ZodString;
|
|
936
936
|
name: z.ZodString;
|
|
937
937
|
email: z.ZodString;
|
|
@@ -962,7 +962,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
962
962
|
hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
|
|
963
963
|
hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
|
|
964
964
|
isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
965
|
-
}
|
|
965
|
+
}, {
|
|
966
966
|
userRole: z.ZodOptional<z.ZodObject<{
|
|
967
967
|
id: z.ZodNumber;
|
|
968
968
|
name: z.ZodString;
|
|
@@ -979,7 +979,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
979
979
|
createdAt: Date;
|
|
980
980
|
updatedAt: Date;
|
|
981
981
|
}>>;
|
|
982
|
-
}
|
|
982
|
+
}>, "strip", z.ZodTypeAny, {
|
|
983
983
|
name: string;
|
|
984
984
|
id: string;
|
|
985
985
|
email: string;
|
|
@@ -1065,7 +1065,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1065
1065
|
needsAttentionMap: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1066
1066
|
propertyId: z.ZodOptional<z.ZodNumber>;
|
|
1067
1067
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1068
|
-
reservation: z.ZodOptional<z.ZodObject<Pick<{
|
|
1068
|
+
reservation: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
1069
1069
|
id: z.ZodNumber;
|
|
1070
1070
|
status: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
1071
1071
|
currency: z.ZodString;
|
|
@@ -1099,7 +1099,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1099
1099
|
xeroLastSuccessAt: z.ZodOptional<z.ZodDate>;
|
|
1100
1100
|
xeroLastError: z.ZodOptional<z.ZodString>;
|
|
1101
1101
|
xeroRetryCount: z.ZodOptional<z.ZodNumber>;
|
|
1102
|
-
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"
|
|
1102
|
+
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
|
|
1103
1103
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
1104
1104
|
property: z.ZodOptional<z.ZodObject<{
|
|
1105
1105
|
id: z.ZodNumber;
|
|
@@ -1192,7 +1192,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1192
1192
|
customBundleId?: number | null | undefined;
|
|
1193
1193
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1194
1194
|
}>>;
|
|
1195
|
-
}
|
|
1195
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1196
1196
|
id: number;
|
|
1197
1197
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
1198
1198
|
propertyId: number;
|
|
@@ -7,3 +7,7 @@ export * from "./human-review-task";
|
|
|
7
7
|
export * from "./user-ai-agent-subscription";
|
|
8
8
|
export * from "./host-coordinator-config";
|
|
9
9
|
export * from "./revenue-manager-config";
|
|
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";
|
|
@@ -23,3 +23,7 @@ __exportStar(require("./human-review-task"), exports);
|
|
|
23
23
|
__exportStar(require("./user-ai-agent-subscription"), exports);
|
|
24
24
|
__exportStar(require("./host-coordinator-config"), exports);
|
|
25
25
|
__exportStar(require("./revenue-manager-config"), exports);
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { revenueManagerRunLogSchema } from "../../schemas/ai-agent";
|
|
3
|
+
import { PropertyAiAgentSubscription } from "./property-ai-agent-subscription";
|
|
4
|
+
import { Property } from "../property";
|
|
5
|
+
export interface RevenueManagerRunLog extends infer<typeof revenueManagerRunLogSchema> {
|
|
6
|
+
subscription?: PropertyAiAgentSubscription;
|
|
7
|
+
property?: Property;
|
|
8
|
+
}
|
|
@@ -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";
|
|
@@ -28,6 +28,7 @@ import { PropertyAiAgentSubscription } from "../ai-agent/property-ai-agent-subsc
|
|
|
28
28
|
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
|
+
import { RevenueManagerRunLog } from "../ai-agent/revenue-manager-run-log";
|
|
31
32
|
export interface Property extends infer<typeof propertySchema> {
|
|
32
33
|
user?: User;
|
|
33
34
|
rooms?: Room[];
|
|
@@ -62,6 +63,7 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
62
63
|
agentThreadSessions?: AgentThreadSession[];
|
|
63
64
|
agentActionLogs?: AgentActionLog[];
|
|
64
65
|
humanReviewTasks?: HumanReviewTask[];
|
|
66
|
+
revenueManagerRunLogs?: RevenueManagerRunLog[];
|
|
65
67
|
}
|
|
66
68
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
67
69
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { servicePropertySchema } from "../../schemas/service-property";
|
|
3
|
+
import { Property } from "../property";
|
|
4
|
+
import { Service } from "../service";
|
|
5
|
+
export interface ServiceProperty extends infer<typeof servicePropertySchema> {
|
|
6
|
+
property?: Property;
|
|
7
|
+
service?: Service;
|
|
8
|
+
}
|