hububb-saas-shared 1.0.32 → 1.0.34
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 +10 -0
- package/dist/schemas/enums/index.js +13 -1
- package/dist/schemas/index.d.ts +6 -0
- package/dist/schemas/index.js +6 -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/schemas/thread/index.d.ts +17 -0
- package/dist/schemas/user/index.d.ts +3 -0
- package/dist/schemas/user/index.js +1 -0
- package/dist/schemas/user-role/index.d.ts +16 -0
- package/dist/schemas/user-role/index.js +10 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.js +6 -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/dist/types/user/index.d.ts +2 -0
- package/dist/types/user-role/index.d.ts +4 -0
- package/dist/types/user-role/index.js +2 -0
- package/package.json +1 -1
|
@@ -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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./user";
|
|
2
|
+
export * from "./user-role";
|
|
2
3
|
export * from "./tier";
|
|
3
4
|
export * from "./property";
|
|
4
5
|
export * from "./rate-plan";
|
|
@@ -22,3 +23,8 @@ export * from "./room-reservation";
|
|
|
22
23
|
export * from "./channel";
|
|
23
24
|
export * from "./property-channel";
|
|
24
25
|
export * from "./channel-mapping";
|
|
26
|
+
export * from "./task";
|
|
27
|
+
export * from "./task-attachment";
|
|
28
|
+
export * from "./task-department";
|
|
29
|
+
export * from "./task-subdepartment";
|
|
30
|
+
export * from "./task-tag";
|
package/dist/schemas/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./user"), exports);
|
|
18
|
+
__exportStar(require("./user-role"), exports);
|
|
18
19
|
__exportStar(require("./tier"), exports);
|
|
19
20
|
__exportStar(require("./property"), exports);
|
|
20
21
|
__exportStar(require("./rate-plan"), exports);
|
|
@@ -38,3 +39,8 @@ __exportStar(require("./room-reservation"), exports);
|
|
|
38
39
|
__exportStar(require("./channel"), exports);
|
|
39
40
|
__exportStar(require("./property-channel"), exports);
|
|
40
41
|
__exportStar(require("./channel-mapping"), exports);
|
|
42
|
+
__exportStar(require("./task"), exports);
|
|
43
|
+
__exportStar(require("./task-attachment"), exports);
|
|
44
|
+
__exportStar(require("./task-department"), exports);
|
|
45
|
+
__exportStar(require("./task-subdepartment"), exports);
|
|
46
|
+
__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
|
+
});
|
|
@@ -14,6 +14,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
|
14
14
|
lastName: import("zod").ZodString;
|
|
15
15
|
phone: import("zod").ZodString;
|
|
16
16
|
isOnboardingCompleted: import("zod").ZodBoolean;
|
|
17
|
+
userRoleId: import("zod").ZodNumber;
|
|
17
18
|
}, "strip", import("zod").ZodTypeAny, {
|
|
18
19
|
name: string;
|
|
19
20
|
id: string;
|
|
@@ -25,6 +26,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
|
25
26
|
lastName: string;
|
|
26
27
|
phone: string;
|
|
27
28
|
isOnboardingCompleted: boolean;
|
|
29
|
+
userRoleId: number;
|
|
28
30
|
}, {
|
|
29
31
|
name: string;
|
|
30
32
|
id: string;
|
|
@@ -36,6 +38,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
|
36
38
|
lastName: string;
|
|
37
39
|
phone: string;
|
|
38
40
|
isOnboardingCompleted: boolean;
|
|
41
|
+
userRoleId: number;
|
|
39
42
|
}>>;
|
|
40
43
|
contentType: import("zod").ZodString;
|
|
41
44
|
body: import("zod").ZodString;
|
|
@@ -65,6 +68,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
|
65
68
|
lastName: string;
|
|
66
69
|
phone: string;
|
|
67
70
|
isOnboardingCompleted: boolean;
|
|
71
|
+
userRoleId: number;
|
|
68
72
|
} | undefined;
|
|
69
73
|
lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
|
|
70
74
|
externalMessageId?: string | undefined;
|
|
@@ -89,6 +93,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
|
89
93
|
lastName: string;
|
|
90
94
|
phone: string;
|
|
91
95
|
isOnboardingCompleted: boolean;
|
|
96
|
+
userRoleId: number;
|
|
92
97
|
} | undefined;
|
|
93
98
|
lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
|
|
94
99
|
externalMessageId?: string | undefined;
|
|
@@ -113,6 +118,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
113
118
|
lastName: import("zod").ZodString;
|
|
114
119
|
phone: import("zod").ZodString;
|
|
115
120
|
isOnboardingCompleted: import("zod").ZodBoolean;
|
|
121
|
+
userRoleId: import("zod").ZodNumber;
|
|
116
122
|
}, "strip", import("zod").ZodTypeAny, {
|
|
117
123
|
name: string;
|
|
118
124
|
id: string;
|
|
@@ -124,6 +130,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
124
130
|
lastName: string;
|
|
125
131
|
phone: string;
|
|
126
132
|
isOnboardingCompleted: boolean;
|
|
133
|
+
userRoleId: number;
|
|
127
134
|
}, {
|
|
128
135
|
name: string;
|
|
129
136
|
id: string;
|
|
@@ -135,6 +142,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
135
142
|
lastName: string;
|
|
136
143
|
phone: string;
|
|
137
144
|
isOnboardingCompleted: boolean;
|
|
145
|
+
userRoleId: number;
|
|
138
146
|
}>>;
|
|
139
147
|
contentType: import("zod").ZodString;
|
|
140
148
|
body: import("zod").ZodString;
|
|
@@ -164,6 +172,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
164
172
|
lastName: string;
|
|
165
173
|
phone: string;
|
|
166
174
|
isOnboardingCompleted: boolean;
|
|
175
|
+
userRoleId: number;
|
|
167
176
|
} | undefined;
|
|
168
177
|
lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
|
|
169
178
|
externalMessageId?: string | undefined;
|
|
@@ -188,6 +197,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
188
197
|
lastName: string;
|
|
189
198
|
phone: string;
|
|
190
199
|
isOnboardingCompleted: boolean;
|
|
200
|
+
userRoleId: number;
|
|
191
201
|
} | undefined;
|
|
192
202
|
lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
|
|
193
203
|
externalMessageId?: string | undefined;
|
|
@@ -204,6 +214,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
204
214
|
lastName: import("zod").ZodString;
|
|
205
215
|
phone: import("zod").ZodString;
|
|
206
216
|
isOnboardingCompleted: import("zod").ZodBoolean;
|
|
217
|
+
userRoleId: import("zod").ZodNumber;
|
|
207
218
|
}, "strip", import("zod").ZodTypeAny, {
|
|
208
219
|
name: string;
|
|
209
220
|
id: string;
|
|
@@ -215,6 +226,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
215
226
|
lastName: string;
|
|
216
227
|
phone: string;
|
|
217
228
|
isOnboardingCompleted: boolean;
|
|
229
|
+
userRoleId: number;
|
|
218
230
|
}, {
|
|
219
231
|
name: string;
|
|
220
232
|
id: string;
|
|
@@ -226,6 +238,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
226
238
|
lastName: string;
|
|
227
239
|
phone: string;
|
|
228
240
|
isOnboardingCompleted: boolean;
|
|
241
|
+
userRoleId: number;
|
|
229
242
|
}>, "many">>;
|
|
230
243
|
type: import("zod").ZodUnion<[import("zod").ZodLiteral<"ONE_TO_ONE">, import("zod").ZodLiteral<"GROUP">]>;
|
|
231
244
|
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -271,6 +284,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
271
284
|
lastName: string;
|
|
272
285
|
phone: string;
|
|
273
286
|
isOnboardingCompleted: boolean;
|
|
287
|
+
userRoleId: number;
|
|
274
288
|
} | undefined;
|
|
275
289
|
lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
|
|
276
290
|
externalMessageId?: string | undefined;
|
|
@@ -286,6 +300,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
286
300
|
lastName: string;
|
|
287
301
|
phone: string;
|
|
288
302
|
isOnboardingCompleted: boolean;
|
|
303
|
+
userRoleId: number;
|
|
289
304
|
}[] | undefined;
|
|
290
305
|
externalThreadId?: string | undefined;
|
|
291
306
|
externalSource?: string | undefined;
|
|
@@ -324,6 +339,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
324
339
|
lastName: string;
|
|
325
340
|
phone: string;
|
|
326
341
|
isOnboardingCompleted: boolean;
|
|
342
|
+
userRoleId: number;
|
|
327
343
|
} | undefined;
|
|
328
344
|
lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
|
|
329
345
|
externalMessageId?: string | undefined;
|
|
@@ -339,6 +355,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
339
355
|
lastName: string;
|
|
340
356
|
phone: string;
|
|
341
357
|
isOnboardingCompleted: boolean;
|
|
358
|
+
userRoleId: number;
|
|
342
359
|
}[] | undefined;
|
|
343
360
|
externalThreadId?: string | undefined;
|
|
344
361
|
externalSource?: string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
9
9
|
lastName: import("zod").ZodString;
|
|
10
10
|
phone: import("zod").ZodString;
|
|
11
11
|
isOnboardingCompleted: import("zod").ZodBoolean;
|
|
12
|
+
userRoleId: import("zod").ZodNumber;
|
|
12
13
|
}, "strip", import("zod").ZodTypeAny, {
|
|
13
14
|
name: string;
|
|
14
15
|
id: string;
|
|
@@ -20,6 +21,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
20
21
|
lastName: string;
|
|
21
22
|
phone: string;
|
|
22
23
|
isOnboardingCompleted: boolean;
|
|
24
|
+
userRoleId: number;
|
|
23
25
|
}, {
|
|
24
26
|
name: string;
|
|
25
27
|
id: string;
|
|
@@ -31,4 +33,5 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
31
33
|
lastName: string;
|
|
32
34
|
phone: string;
|
|
33
35
|
isOnboardingCompleted: boolean;
|
|
36
|
+
userRoleId: number;
|
|
34
37
|
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const userRoleSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
createdAt: import("zod").ZodDate;
|
|
5
|
+
updatedAt: import("zod").ZodDate;
|
|
6
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
7
|
+
name: string;
|
|
8
|
+
id: number;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}, {
|
|
12
|
+
name: string;
|
|
13
|
+
id: number;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userRoleSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.userRoleSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
createdAt: (0, zod_1.date)(),
|
|
9
|
+
updatedAt: (0, zod_1.date)(),
|
|
10
|
+
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./user";
|
|
2
|
+
export * from "./user-role";
|
|
2
3
|
export * from "./tier";
|
|
3
4
|
export * from "./property";
|
|
4
5
|
export * from "./rate-plan";
|
|
@@ -21,3 +22,8 @@ export * from "./room-reservation";
|
|
|
21
22
|
export * from "./channel";
|
|
22
23
|
export * from "./property-channel";
|
|
23
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/types/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./user"), exports);
|
|
18
|
+
__exportStar(require("./user-role"), exports);
|
|
18
19
|
__exportStar(require("./tier"), exports);
|
|
19
20
|
__exportStar(require("./property"), exports);
|
|
20
21
|
__exportStar(require("./rate-plan"), exports);
|
|
@@ -37,3 +38,8 @@ __exportStar(require("./room-reservation"), exports);
|
|
|
37
38
|
__exportStar(require("./channel"), exports);
|
|
38
39
|
__exportStar(require("./property-channel"), exports);
|
|
39
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);
|
|
@@ -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
|
+
}
|
|
@@ -2,7 +2,9 @@ import { infer } from "zod";
|
|
|
2
2
|
import { userSchema } from "../../schemas/user";
|
|
3
3
|
import { Tier } from "../tier";
|
|
4
4
|
import { Property } from "../property";
|
|
5
|
+
import { UserRole } from "../user-role";
|
|
5
6
|
export interface User extends infer<typeof userSchema> {
|
|
6
7
|
tier?: Tier;
|
|
7
8
|
properties?: Property[];
|
|
9
|
+
userRole?: UserRole;
|
|
8
10
|
}
|