hububb-saas-shared 1.0.31 → 1.0.33
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/channel-mapping/index.d.ts +3 -0
- package/dist/schemas/channel-mapping/index.js +1 -0
- package/dist/schemas/enums/index.d.ts +10 -0
- package/dist/schemas/enums/index.js +13 -1
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +5 -0
- package/dist/schemas/task/index.d.ts +38 -0
- package/dist/schemas/task/index.js +18 -0
- package/dist/schemas/task-attachment/index.d.ts +19 -0
- package/dist/schemas/task-attachment/index.js +11 -0
- package/dist/schemas/task-department/index.d.ts +19 -0
- package/dist/schemas/task-department/index.js +11 -0
- package/dist/schemas/task-subdepartment/index.d.ts +19 -0
- package/dist/schemas/task-subdepartment/index.js +11 -0
- package/dist/schemas/task-tag/index.d.ts +19 -0
- package/dist/schemas/task-tag/index.js +11 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +5 -0
- package/dist/types/property/index.d.ts +2 -0
- package/dist/types/task/index.d.ts +14 -0
- package/dist/types/task/index.js +2 -0
- package/dist/types/task-attachment/index.d.ts +6 -0
- package/dist/types/task-attachment/index.js +2 -0
- package/dist/types/task-department/index.d.ts +6 -0
- package/dist/types/task-department/index.js +2 -0
- package/dist/types/task-subdepartment/index.d.ts +6 -0
- package/dist/types/task-subdepartment/index.js +2 -0
- package/dist/types/task-tag/index.d.ts +6 -0
- package/dist/types/task-tag/index.js +2 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export declare const channelMappingSchema: import("zod").ZodObject<{
|
|
|
8
8
|
otaRoomTitle: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
9
9
|
otaRatePlanTitle: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
10
|
propertyChannelId: import("zod").ZodNumber;
|
|
11
|
+
channexMappingId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
11
12
|
createdAt: import("zod").ZodDate;
|
|
12
13
|
updatedAt: import("zod").ZodDate;
|
|
13
14
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -22,6 +23,7 @@ export declare const channelMappingSchema: import("zod").ZodObject<{
|
|
|
22
23
|
otaRoomId?: string | null | undefined;
|
|
23
24
|
otaRoomTitle?: string | null | undefined;
|
|
24
25
|
otaRatePlanTitle?: string | null | undefined;
|
|
26
|
+
channexMappingId?: string | null | undefined;
|
|
25
27
|
}, {
|
|
26
28
|
id: number;
|
|
27
29
|
createdAt: Date;
|
|
@@ -34,4 +36,5 @@ export declare const channelMappingSchema: import("zod").ZodObject<{
|
|
|
34
36
|
otaRoomId?: string | null | undefined;
|
|
35
37
|
otaRoomTitle?: string | null | undefined;
|
|
36
38
|
otaRatePlanTitle?: string | null | undefined;
|
|
39
|
+
channexMappingId?: string | null | undefined;
|
|
37
40
|
}>;
|
|
@@ -12,6 +12,7 @@ exports.channelMappingSchema = (0, zod_1.object)({
|
|
|
12
12
|
otaRoomTitle: (0, zod_1.string)().nullish(),
|
|
13
13
|
otaRatePlanTitle: (0, zod_1.string)().nullish(),
|
|
14
14
|
propertyChannelId: (0, zod_1.number)().int(),
|
|
15
|
+
channexMappingId: (0, zod_1.string)().nullish(),
|
|
15
16
|
createdAt: (0, zod_1.date)(),
|
|
16
17
|
updatedAt: (0, zod_1.date)(),
|
|
17
18
|
});
|
|
@@ -2,3 +2,13 @@ export declare enum ServiceType {
|
|
|
2
2
|
ON_DEMAND = "ON_DEMAND",
|
|
3
3
|
SUBSCRIPTION = "RECURRING"
|
|
4
4
|
}
|
|
5
|
+
export declare enum TaskStatus {
|
|
6
|
+
PENDING = "PENDING",
|
|
7
|
+
CONFIRMED = "CONFIRMED",
|
|
8
|
+
COMPLETED = "COMPLETED"
|
|
9
|
+
}
|
|
10
|
+
export declare enum TaskPriority {
|
|
11
|
+
LOW = "LOW",
|
|
12
|
+
MEDIUM = "MEDIUM",
|
|
13
|
+
HIGH = "HIGH"
|
|
14
|
+
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceType = void 0;
|
|
3
|
+
exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
|
|
4
4
|
var ServiceType;
|
|
5
5
|
(function (ServiceType) {
|
|
6
6
|
ServiceType["ON_DEMAND"] = "ON_DEMAND";
|
|
7
7
|
ServiceType["SUBSCRIPTION"] = "RECURRING";
|
|
8
8
|
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
9
|
+
var TaskStatus;
|
|
10
|
+
(function (TaskStatus) {
|
|
11
|
+
TaskStatus["PENDING"] = "PENDING";
|
|
12
|
+
TaskStatus["CONFIRMED"] = "CONFIRMED";
|
|
13
|
+
TaskStatus["COMPLETED"] = "COMPLETED";
|
|
14
|
+
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
15
|
+
var TaskPriority;
|
|
16
|
+
(function (TaskPriority) {
|
|
17
|
+
TaskPriority["LOW"] = "LOW";
|
|
18
|
+
TaskPriority["MEDIUM"] = "MEDIUM";
|
|
19
|
+
TaskPriority["HIGH"] = "HIGH";
|
|
20
|
+
})(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -22,3 +22,8 @@ export * from "./room-reservation";
|
|
|
22
22
|
export * from "./channel";
|
|
23
23
|
export * from "./property-channel";
|
|
24
24
|
export * from "./channel-mapping";
|
|
25
|
+
export * from "./task";
|
|
26
|
+
export * from "./task-attachment";
|
|
27
|
+
export * from "./task-department";
|
|
28
|
+
export * from "./task-subdepartment";
|
|
29
|
+
export * from "./task-tag";
|
package/dist/schemas/index.js
CHANGED
|
@@ -38,3 +38,8 @@ __exportStar(require("./room-reservation"), exports);
|
|
|
38
38
|
__exportStar(require("./channel"), exports);
|
|
39
39
|
__exportStar(require("./property-channel"), exports);
|
|
40
40
|
__exportStar(require("./channel-mapping"), exports);
|
|
41
|
+
__exportStar(require("./task"), exports);
|
|
42
|
+
__exportStar(require("./task-attachment"), exports);
|
|
43
|
+
__exportStar(require("./task-department"), exports);
|
|
44
|
+
__exportStar(require("./task-subdepartment"), exports);
|
|
45
|
+
__exportStar(require("./task-tag"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TaskPriority, TaskStatus } from "../enums";
|
|
2
|
+
export declare const taskSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
status: import("zod").ZodNativeEnum<typeof TaskStatus>;
|
|
5
|
+
priority: import("zod").ZodNativeEnum<typeof TaskPriority>;
|
|
6
|
+
dueDate: import("zod").ZodDate;
|
|
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
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
15
|
+
id: number;
|
|
16
|
+
priority: TaskPriority;
|
|
17
|
+
title: string;
|
|
18
|
+
status: TaskStatus;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
propertyId: number;
|
|
22
|
+
dueDate: Date;
|
|
23
|
+
departmentId: number;
|
|
24
|
+
subdepartmentId: number;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
id: number;
|
|
28
|
+
priority: TaskPriority;
|
|
29
|
+
title: string;
|
|
30
|
+
status: TaskStatus;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
propertyId: number;
|
|
34
|
+
dueDate: Date;
|
|
35
|
+
departmentId: number;
|
|
36
|
+
subdepartmentId: number;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
exports.taskSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
status: (0, zod_1.nativeEnum)(enums_1.TaskStatus),
|
|
9
|
+
priority: (0, zod_1.nativeEnum)(enums_1.TaskPriority),
|
|
10
|
+
dueDate: (0, zod_1.date)(),
|
|
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
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const taskAttachmentSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
url: import("zod").ZodString;
|
|
4
|
+
taskId: 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
|
+
taskId: number;
|
|
13
|
+
}, {
|
|
14
|
+
id: number;
|
|
15
|
+
url: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
taskId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskAttachmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskAttachmentSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
url: (0, zod_1.string)(),
|
|
8
|
+
taskId: (0, zod_1.number)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const taskDepartmentSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
displayName: import("zod").ZodString;
|
|
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
|
+
displayName: string;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
id: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
displayName: string;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskDepartmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskDepartmentSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
displayName: (0, zod_1.string)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const taskSubdepartmentSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
displayName: import("zod").ZodString;
|
|
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
|
+
displayName: string;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
id: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
displayName: string;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskSubdepartmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskSubdepartmentSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
displayName: (0, zod_1.string)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const taskTagSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
taskId: 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
|
+
taskId: number;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
id: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
taskId: number;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskTagSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskTagSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
taskId: (0, zod_1.number)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -21,3 +21,8 @@ export * from "./room-reservation";
|
|
|
21
21
|
export * from "./channel";
|
|
22
22
|
export * from "./property-channel";
|
|
23
23
|
export * from "./channel-mapping";
|
|
24
|
+
export * from "./task";
|
|
25
|
+
export * from "./task-attachment";
|
|
26
|
+
export * from "./task-department";
|
|
27
|
+
export * from "./task-subdepartment";
|
|
28
|
+
export * from "./task-tag";
|
package/dist/types/index.js
CHANGED
|
@@ -37,3 +37,8 @@ __exportStar(require("./room-reservation"), exports);
|
|
|
37
37
|
__exportStar(require("./channel"), exports);
|
|
38
38
|
__exportStar(require("./property-channel"), exports);
|
|
39
39
|
__exportStar(require("./channel-mapping"), exports);
|
|
40
|
+
__exportStar(require("./task"), exports);
|
|
41
|
+
__exportStar(require("./task-attachment"), exports);
|
|
42
|
+
__exportStar(require("./task-department"), exports);
|
|
43
|
+
__exportStar(require("./task-subdepartment"), exports);
|
|
44
|
+
__exportStar(require("./task-tag"), exports);
|
|
@@ -10,6 +10,7 @@ import { Price } from "../price";
|
|
|
10
10
|
import { PropertyMetadata } from "../property-metadata";
|
|
11
11
|
import { Room } from "../room";
|
|
12
12
|
import { PropertyChannel } from "../property-channel";
|
|
13
|
+
import { Task } from "../task";
|
|
13
14
|
export interface Property extends infer<typeof propertySchema> {
|
|
14
15
|
user?: User;
|
|
15
16
|
rooms?: Room[];
|
|
@@ -25,6 +26,7 @@ export interface Property extends infer<typeof propertySchema> {
|
|
|
25
26
|
price?: Price;
|
|
26
27
|
metadata?: PropertyMetadata;
|
|
27
28
|
propertyChannel?: PropertyChannel[];
|
|
29
|
+
tasks?: Task[];
|
|
28
30
|
}
|
|
29
31
|
export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
|
|
30
32
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskSchema } from "../../schemas/task";
|
|
3
|
+
import { Property } from "../property";
|
|
4
|
+
import { TaskDepartment } from "../task-department";
|
|
5
|
+
import { TaskSubdepartment } from "../task-subdepartment";
|
|
6
|
+
import { TaskAttachment } from "../task-attachment";
|
|
7
|
+
import { TaskTag } from "../task-tag";
|
|
8
|
+
export interface Task extends infer<typeof taskSchema> {
|
|
9
|
+
property?: Property;
|
|
10
|
+
department?: TaskDepartment;
|
|
11
|
+
subdepartment?: TaskSubdepartment;
|
|
12
|
+
attachments?: TaskAttachment[];
|
|
13
|
+
tags?: TaskTag[];
|
|
14
|
+
}
|