hububb-saas-shared 1.0.34 → 1.0.36
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/enums/index.d.ts +2 -1
- package/dist/schemas/enums/index.js +1 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +4 -0
- package/dist/schemas/task-automation/index.d.ts +41 -0
- package/dist/schemas/task-automation/index.js +19 -0
- package/dist/schemas/task-automation-attachment/index.d.ts +19 -0
- package/dist/schemas/task-automation-attachment/index.js +11 -0
- package/dist/schemas/task-automation-event/index.d.ts +22 -0
- package/dist/schemas/task-automation-event/index.js +12 -0
- package/dist/schemas/task-automation-tag/index.d.ts +19 -0
- package/dist/schemas/task-automation-tag/index.js +11 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +4 -0
- package/dist/types/property/index.d.ts +2 -0
- package/dist/types/task-automation/index.d.ts +16 -0
- package/dist/types/task-automation/index.js +2 -0
- package/dist/types/task-automation-attachment/index.d.ts +6 -0
- package/dist/types/task-automation-attachment/index.js +2 -0
- package/dist/types/task-automation-event/index.d.ts +6 -0
- package/dist/types/task-automation-event/index.js +2 -0
- package/dist/types/task-automation-tag/index.d.ts +6 -0
- package/dist/types/task-automation-tag/index.js +2 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ var TaskStatus;
|
|
|
11
11
|
TaskStatus["PENDING"] = "PENDING";
|
|
12
12
|
TaskStatus["CONFIRMED"] = "CONFIRMED";
|
|
13
13
|
TaskStatus["COMPLETED"] = "COMPLETED";
|
|
14
|
+
TaskStatus["CANCELLED"] = "CANCELLED";
|
|
14
15
|
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
15
16
|
var TaskPriority;
|
|
16
17
|
(function (TaskPriority) {
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -28,3 +28,7 @@ export * from "./task-attachment";
|
|
|
28
28
|
export * from "./task-department";
|
|
29
29
|
export * from "./task-subdepartment";
|
|
30
30
|
export * from "./task-tag";
|
|
31
|
+
export * from "./task-automation";
|
|
32
|
+
export * from "./task-automation-attachment";
|
|
33
|
+
export * from "./task-automation-tag";
|
|
34
|
+
export * from "./task-automation-event";
|
package/dist/schemas/index.js
CHANGED
|
@@ -44,3 +44,7 @@ __exportStar(require("./task-attachment"), exports);
|
|
|
44
44
|
__exportStar(require("./task-department"), exports);
|
|
45
45
|
__exportStar(require("./task-subdepartment"), exports);
|
|
46
46
|
__exportStar(require("./task-tag"), exports);
|
|
47
|
+
__exportStar(require("./task-automation"), exports);
|
|
48
|
+
__exportStar(require("./task-automation-attachment"), exports);
|
|
49
|
+
__exportStar(require("./task-automation-tag"), exports);
|
|
50
|
+
__exportStar(require("./task-automation-event"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TaskPriority } from "../enums";
|
|
2
|
+
export declare const taskAutomationSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
isActive: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
5
|
+
timeOffsetMinutes: import("zod").ZodNumber;
|
|
6
|
+
priority: import("zod").ZodNativeEnum<typeof TaskPriority>;
|
|
7
|
+
title: import("zod").ZodString;
|
|
8
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
departmentId: import("zod").ZodNumber;
|
|
10
|
+
subdepartmentId: import("zod").ZodNumber;
|
|
11
|
+
createdAt: import("zod").ZodDate;
|
|
12
|
+
updatedAt: import("zod").ZodDate;
|
|
13
|
+
propertyId: import("zod").ZodNumber;
|
|
14
|
+
eventId: import("zod").ZodNumber;
|
|
15
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
+
id: number;
|
|
17
|
+
priority: TaskPriority;
|
|
18
|
+
title: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
propertyId: number;
|
|
22
|
+
departmentId: number;
|
|
23
|
+
subdepartmentId: number;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
timeOffsetMinutes: number;
|
|
26
|
+
eventId: number;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
id: number;
|
|
30
|
+
priority: TaskPriority;
|
|
31
|
+
title: string;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
propertyId: number;
|
|
35
|
+
departmentId: number;
|
|
36
|
+
subdepartmentId: number;
|
|
37
|
+
timeOffsetMinutes: number;
|
|
38
|
+
eventId: number;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
isActive?: boolean | undefined;
|
|
41
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskAutomationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
exports.taskAutomationSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
isActive: (0, zod_1.boolean)().default(true),
|
|
9
|
+
timeOffsetMinutes: (0, zod_1.number)().int(),
|
|
10
|
+
priority: (0, zod_1.nativeEnum)(enums_1.TaskPriority),
|
|
11
|
+
title: (0, zod_1.string)(),
|
|
12
|
+
description: (0, zod_1.string)().optional(),
|
|
13
|
+
departmentId: (0, zod_1.number)().int(),
|
|
14
|
+
subdepartmentId: (0, zod_1.number)().int(),
|
|
15
|
+
createdAt: (0, zod_1.date)(),
|
|
16
|
+
updatedAt: (0, zod_1.date)(),
|
|
17
|
+
propertyId: (0, zod_1.number)().int(),
|
|
18
|
+
eventId: (0, zod_1.number)().int(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const taskAutomationAttachmentSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
url: import("zod").ZodString;
|
|
4
|
+
automationId: import("zod").ZodNumber;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
id: number;
|
|
9
|
+
url: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
automationId: number;
|
|
13
|
+
}, {
|
|
14
|
+
id: number;
|
|
15
|
+
url: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
automationId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskAutomationAttachmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskAutomationAttachmentSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
url: (0, zod_1.string)(),
|
|
8
|
+
automationId: (0, zod_1.number)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const taskAutomationEventSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
eventType: import("zod").ZodString;
|
|
6
|
+
createdAt: import("zod").ZodDate;
|
|
7
|
+
updatedAt: import("zod").ZodDate;
|
|
8
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
id: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
eventType: string;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
name: string;
|
|
17
|
+
id: number;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
eventType: string;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskAutomationEventSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskAutomationEventSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
description: (0, zod_1.string)().optional(),
|
|
9
|
+
eventType: (0, zod_1.string)(),
|
|
10
|
+
createdAt: (0, zod_1.date)(),
|
|
11
|
+
updatedAt: (0, zod_1.date)(),
|
|
12
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const taskAutomationTagSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
automationId: import("zod").ZodNumber;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
id: number;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
automationId: number;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
id: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
automationId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskAutomationTagSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskAutomationTagSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
automationId: (0, zod_1.number)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -27,3 +27,7 @@ export * from "./task-attachment";
|
|
|
27
27
|
export * from "./task-department";
|
|
28
28
|
export * from "./task-subdepartment";
|
|
29
29
|
export * from "./task-tag";
|
|
30
|
+
export * from "./task-automation";
|
|
31
|
+
export * from "./task-automation-attachment";
|
|
32
|
+
export * from "./task-automation-tag";
|
|
33
|
+
export * from "./task-automation-event";
|
package/dist/types/index.js
CHANGED
|
@@ -43,3 +43,7 @@ __exportStar(require("./task-attachment"), exports);
|
|
|
43
43
|
__exportStar(require("./task-department"), exports);
|
|
44
44
|
__exportStar(require("./task-subdepartment"), exports);
|
|
45
45
|
__exportStar(require("./task-tag"), exports);
|
|
46
|
+
__exportStar(require("./task-automation"), exports);
|
|
47
|
+
__exportStar(require("./task-automation-attachment"), exports);
|
|
48
|
+
__exportStar(require("./task-automation-tag"), exports);
|
|
49
|
+
__exportStar(require("./task-automation-event"), exports);
|
|
@@ -11,6 +11,7 @@ import { PropertyMetadata } from "../property-metadata";
|
|
|
11
11
|
import { Room } from "../room";
|
|
12
12
|
import { PropertyChannel } from "../property-channel";
|
|
13
13
|
import { Task } from "../task";
|
|
14
|
+
import { TaskAutomation } from "../task-automation";
|
|
14
15
|
export interface Property extends infer<typeof propertySchema> {
|
|
15
16
|
user?: User;
|
|
16
17
|
rooms?: Room[];
|
|
@@ -27,6 +28,7 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
27
28
|
metadata?: PropertyMetadata;
|
|
28
29
|
propertyChannel?: PropertyChannel[];
|
|
29
30
|
tasks?: Task[];
|
|
31
|
+
automations?: TaskAutomation[];
|
|
30
32
|
}
|
|
31
33
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
32
34
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskAutomationSchema } from "../../schemas/task-automation";
|
|
3
|
+
import { TaskAutomationEvent } from "../task-automation-event";
|
|
4
|
+
import { TaskDepartment } from "../task-department";
|
|
5
|
+
import { TaskSubdepartment } from "../task-subdepartment";
|
|
6
|
+
import { TaskAutomationAttachment } from "../task-automation-attachment";
|
|
7
|
+
import { TaskAutomationTag } from "../task-automation-tag";
|
|
8
|
+
import { Property } from "../property";
|
|
9
|
+
export interface TaskAutomation extends infer<typeof taskAutomationSchema> {
|
|
10
|
+
event?: TaskAutomationEvent;
|
|
11
|
+
department?: TaskDepartment;
|
|
12
|
+
subdepartment?: TaskSubdepartment;
|
|
13
|
+
attamchments?: TaskAutomationAttachment[];
|
|
14
|
+
tags?: TaskAutomationTag[];
|
|
15
|
+
property?: Property;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskAutomationAttachmentSchema } from "../../schemas/task-automation-attachment";
|
|
3
|
+
import { TaskAutomation } from "../task-automation";
|
|
4
|
+
export interface TaskAutomationAttachment extends infer<typeof taskAutomationAttachmentSchema> {
|
|
5
|
+
automation?: TaskAutomation;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskAutomationEventSchema } from "../../schemas/task-automation-event";
|
|
3
|
+
import { TaskAutomation } from "../task-automation";
|
|
4
|
+
export interface TaskAutomationEvent extends infer<typeof taskAutomationEventSchema> {
|
|
5
|
+
automations?: TaskAutomation[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskAutomationTagSchema } from "../../schemas/task-automation-tag";
|
|
3
|
+
import { TaskAutomation } from "../task-automation";
|
|
4
|
+
export interface TaskAutomationTag extends infer<typeof taskAutomationTagSchema> {
|
|
5
|
+
automation?: TaskAutomation;
|
|
6
|
+
}
|