hububb-saas-shared 1.1.81 → 1.2.1
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/cleaning-checklist/index.d.ts +63 -0
- package/dist/schemas/cleaning-checklist/index.js +27 -0
- package/dist/schemas/custom-bundle/index.d.ts +3 -3
- package/dist/schemas/custom-bundle/index.js +1 -0
- package/dist/schemas/index.d.ts +12 -0
- package/dist/schemas/index.js +12 -0
- package/dist/schemas/reporting-handbook/index.d.ts +34 -0
- package/dist/schemas/reporting-handbook/index.js +16 -0
- package/dist/schemas/supplies-and-notes-handbook/index.d.ts +52 -0
- package/dist/schemas/supplies-and-notes-handbook/index.js +22 -0
- package/dist/schemas/task/index.d.ts +30 -0
- package/dist/schemas/task/index.js +10 -0
- package/dist/schemas/task-assignment/index.d.ts +31 -0
- package/dist/schemas/task-assignment/index.js +15 -0
- package/dist/schemas/task-checklist/index.d.ts +25 -0
- package/dist/schemas/task-checklist/index.js +13 -0
- package/dist/schemas/task-checklist-item/index.d.ts +25 -0
- package/dist/schemas/task-checklist-item/index.js +13 -0
- package/dist/schemas/task-checklist-space/index.d.ts +25 -0
- package/dist/schemas/task-checklist-space/index.js +24 -0
- package/dist/schemas/task-damage-photo/index.d.ts +19 -0
- package/dist/schemas/task-damage-photo/index.js +11 -0
- package/dist/schemas/task-reference-photo/index.d.ts +19 -0
- package/dist/schemas/task-reference-photo/index.js +11 -0
- package/dist/schemas/task-space-photo/index.d.ts +22 -0
- package/dist/schemas/task-space-photo/index.js +12 -0
- package/dist/schemas/task-space-video/index.d.ts +28 -0
- package/dist/schemas/task-space-video/index.js +14 -0
- package/dist/schemas/task-supply-receipt/index.d.ts +22 -0
- package/dist/schemas/task-supply-receipt/index.js +12 -0
- package/dist/types/cleaning-checklist/index.d.ts +16 -0
- package/dist/types/cleaning-checklist/index.js +2 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.js +12 -0
- package/dist/types/reporting-handbook/index.d.ts +6 -0
- package/dist/types/reporting-handbook/index.js +2 -0
- package/dist/types/room/index.d.ts +8 -0
- package/dist/types/supplies-and-notes-handbook/index.d.ts +6 -0
- package/dist/types/supplies-and-notes-handbook/index.js +2 -0
- package/dist/types/task/index.d.ts +10 -0
- package/dist/types/task-assignment/index.d.ts +8 -0
- package/dist/types/task-assignment/index.js +2 -0
- package/dist/types/task-checklist/index.d.ts +10 -0
- package/dist/types/task-checklist/index.js +2 -0
- package/dist/types/task-checklist-item/index.d.ts +6 -0
- package/dist/types/task-checklist-item/index.js +2 -0
- package/dist/types/task-checklist-space/index.d.ts +14 -0
- package/dist/types/task-checklist-space/index.js +2 -0
- package/dist/types/task-damage-photo/index.d.ts +6 -0
- package/dist/types/task-damage-photo/index.js +2 -0
- package/dist/types/task-reference-photo/index.d.ts +6 -0
- package/dist/types/task-reference-photo/index.js +2 -0
- package/dist/types/task-space-photo/index.d.ts +6 -0
- package/dist/types/task-space-photo/index.js +2 -0
- package/dist/types/task-space-video/index.d.ts +6 -0
- package/dist/types/task-space-video/index.js +2 -0
- package/dist/types/task-supply-receipt/index.d.ts +6 -0
- package/dist/types/task-supply-receipt/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const cleaningChecklistSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
title: import("zod").ZodString;
|
|
4
|
+
description: import("zod").ZodString;
|
|
5
|
+
status: import("zod").ZodUnion<[import("zod").ZodLiteral<"NOT_STARTED">, import("zod").ZodLiteral<"IN_PROGRESS">, import("zod").ZodLiteral<"COMPLETED">]>;
|
|
6
|
+
roomId: import("zod").ZodNumber;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
roomId: number;
|
|
17
|
+
}, {
|
|
18
|
+
id: number;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
roomId: number;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const cleaningChecklistPropertyRoomSchema: import("zod").ZodObject<{
|
|
27
|
+
id: import("zod").ZodNumber;
|
|
28
|
+
cleaningChecklistId: import("zod").ZodNumber;
|
|
29
|
+
propertyRoomId: import("zod").ZodNumber;
|
|
30
|
+
createdAt: import("zod").ZodDate;
|
|
31
|
+
updatedAt: import("zod").ZodDate;
|
|
32
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
33
|
+
id: number;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
propertyRoomId: number;
|
|
37
|
+
cleaningChecklistId: number;
|
|
38
|
+
}, {
|
|
39
|
+
id: number;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
propertyRoomId: number;
|
|
43
|
+
cleaningChecklistId: number;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const cleaningChecklistItemSchema: import("zod").ZodObject<{
|
|
46
|
+
id: import("zod").ZodNumber;
|
|
47
|
+
cleaningChecklistPropertyRoomId: import("zod").ZodNumber;
|
|
48
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
createdAt: import("zod").ZodDate;
|
|
50
|
+
updatedAt: import("zod").ZodDate;
|
|
51
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
52
|
+
id: number;
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
updatedAt: Date;
|
|
55
|
+
cleaningChecklistPropertyRoomId: number;
|
|
56
|
+
content?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
id: number;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
cleaningChecklistPropertyRoomId: number;
|
|
62
|
+
content?: string | undefined;
|
|
63
|
+
}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cleaningChecklistItemSchema = exports.cleaningChecklistPropertyRoomSchema = exports.cleaningChecklistSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.cleaningChecklistSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
title: (0, zod_1.string)(),
|
|
8
|
+
description: (0, zod_1.string)(),
|
|
9
|
+
status: (0, zod_1.union)([(0, zod_1.literal)("NOT_STARTED"), (0, zod_1.literal)("IN_PROGRESS"), (0, zod_1.literal)("COMPLETED")]),
|
|
10
|
+
roomId: (0, zod_1.number)().int(),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
14
|
+
exports.cleaningChecklistPropertyRoomSchema = (0, zod_1.object)({
|
|
15
|
+
id: (0, zod_1.number)().int(),
|
|
16
|
+
cleaningChecklistId: (0, zod_1.number)().int(),
|
|
17
|
+
propertyRoomId: (0, zod_1.number)().int(),
|
|
18
|
+
createdAt: (0, zod_1.date)(),
|
|
19
|
+
updatedAt: (0, zod_1.date)(),
|
|
20
|
+
});
|
|
21
|
+
exports.cleaningChecklistItemSchema = (0, zod_1.object)({
|
|
22
|
+
id: (0, zod_1.number)().int(),
|
|
23
|
+
cleaningChecklistPropertyRoomId: (0, zod_1.number)().int(),
|
|
24
|
+
content: (0, zod_1.string)().optional(),
|
|
25
|
+
createdAt: (0, zod_1.date)(),
|
|
26
|
+
updatedAt: (0, zod_1.date)(),
|
|
27
|
+
});
|
|
@@ -9,7 +9,7 @@ export declare const customBundleSchema: import("zod").ZodObject<{
|
|
|
9
9
|
createdBy: import("zod").ZodString;
|
|
10
10
|
createdAt: import("zod").ZodDate;
|
|
11
11
|
updatedAt: import("zod").ZodDate;
|
|
12
|
-
status: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"DRAFT">, import("zod").ZodLiteral<"PENDING">]>, import("zod").ZodLiteral<"ACCEPTED">]>, import("zod").ZodLiteral<"DECLINED">]>;
|
|
12
|
+
status: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"DRAFT">, import("zod").ZodLiteral<"PENDING">]>, import("zod").ZodLiteral<"ACCEPTED">]>, import("zod").ZodLiteral<"ACTIVE">]>, import("zod").ZodLiteral<"DECLINED">]>;
|
|
13
13
|
showToHost: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
14
14
|
acceptedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
15
15
|
declinedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
@@ -17,7 +17,7 @@ export declare const customBundleSchema: import("zod").ZodObject<{
|
|
|
17
17
|
}, "strip", import("zod").ZodTypeAny, {
|
|
18
18
|
name: string;
|
|
19
19
|
id: number;
|
|
20
|
-
status: "PENDING" | "DRAFT" | "ACCEPTED" | "DECLINED";
|
|
20
|
+
status: "PENDING" | "ACTIVE" | "DRAFT" | "ACCEPTED" | "DECLINED";
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
updatedAt: Date;
|
|
23
23
|
userId: string;
|
|
@@ -33,7 +33,7 @@ export declare const customBundleSchema: import("zod").ZodObject<{
|
|
|
33
33
|
}, {
|
|
34
34
|
name: string;
|
|
35
35
|
id: number;
|
|
36
|
-
status: "PENDING" | "DRAFT" | "ACCEPTED" | "DECLINED";
|
|
36
|
+
status: "PENDING" | "ACTIVE" | "DRAFT" | "ACCEPTED" | "DECLINED";
|
|
37
37
|
createdAt: Date;
|
|
38
38
|
updatedAt: Date;
|
|
39
39
|
userId: string;
|
|
@@ -16,6 +16,7 @@ exports.customBundleSchema = (0, zod_1.object)({
|
|
|
16
16
|
status: (0, zod_1.literal)("DRAFT")
|
|
17
17
|
.or((0, zod_1.literal)("PENDING"))
|
|
18
18
|
.or((0, zod_1.literal)("ACCEPTED"))
|
|
19
|
+
.or((0, zod_1.literal)("ACTIVE"))
|
|
19
20
|
.or((0, zod_1.literal)("DECLINED")),
|
|
20
21
|
showToHost: (0, zod_1.boolean)().optional(),
|
|
21
22
|
acceptedAt: (0, zod_1.date)().optional(),
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -67,3 +67,15 @@ export * from "./custom-bundle-coupon";
|
|
|
67
67
|
export * from "./pending-payment-action";
|
|
68
68
|
export * from "./seam";
|
|
69
69
|
export * from "./klevio";
|
|
70
|
+
export * from "./task-checklist";
|
|
71
|
+
export * from "./task-checklist-space";
|
|
72
|
+
export * from "./task-checklist-item";
|
|
73
|
+
export * from "./task-space-photo";
|
|
74
|
+
export * from "./task-space-video";
|
|
75
|
+
export * from "./task-damage-photo";
|
|
76
|
+
export * from "./task-supply-receipt";
|
|
77
|
+
export * from "./task-reference-photo";
|
|
78
|
+
export * from "./task-assignment";
|
|
79
|
+
export * from "./cleaning-checklist";
|
|
80
|
+
export * from './reporting-handbook';
|
|
81
|
+
export * from './supplies-and-notes-handbook';
|
package/dist/schemas/index.js
CHANGED
|
@@ -83,3 +83,15 @@ __exportStar(require("./custom-bundle-coupon"), exports);
|
|
|
83
83
|
__exportStar(require("./pending-payment-action"), exports);
|
|
84
84
|
__exportStar(require("./seam"), exports);
|
|
85
85
|
__exportStar(require("./klevio"), exports);
|
|
86
|
+
__exportStar(require("./task-checklist"), exports);
|
|
87
|
+
__exportStar(require("./task-checklist-space"), exports);
|
|
88
|
+
__exportStar(require("./task-checklist-item"), exports);
|
|
89
|
+
__exportStar(require("./task-space-photo"), exports);
|
|
90
|
+
__exportStar(require("./task-space-video"), exports);
|
|
91
|
+
__exportStar(require("./task-damage-photo"), exports);
|
|
92
|
+
__exportStar(require("./task-supply-receipt"), exports);
|
|
93
|
+
__exportStar(require("./task-reference-photo"), exports);
|
|
94
|
+
__exportStar(require("./task-assignment"), exports);
|
|
95
|
+
__exportStar(require("./cleaning-checklist"), exports);
|
|
96
|
+
__exportStar(require("./reporting-handbook"), exports);
|
|
97
|
+
__exportStar(require("./supplies-and-notes-handbook"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const reportingHandbookSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
status: import("zod").ZodUnion<[import("zod").ZodLiteral<"NOT_STARTED">, import("zod").ZodLiteral<"IN_PROGRESS">, import("zod").ZodLiteral<"COMPLETED">]>;
|
|
4
|
+
damageReportEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
5
|
+
videoReportEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6
|
+
photoReportEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7
|
+
videoReportNotes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
photoReportNotes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
roomId: import("zod").ZodNumber;
|
|
10
|
+
createdAt: import("zod").ZodDate;
|
|
11
|
+
updatedAt: import("zod").ZodDate;
|
|
12
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
13
|
+
id: number;
|
|
14
|
+
status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
roomId: number;
|
|
18
|
+
damageReportEnabled?: boolean | undefined;
|
|
19
|
+
videoReportEnabled?: boolean | undefined;
|
|
20
|
+
photoReportEnabled?: boolean | undefined;
|
|
21
|
+
videoReportNotes?: string | undefined;
|
|
22
|
+
photoReportNotes?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
id: number;
|
|
25
|
+
status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
roomId: number;
|
|
29
|
+
damageReportEnabled?: boolean | undefined;
|
|
30
|
+
videoReportEnabled?: boolean | undefined;
|
|
31
|
+
photoReportEnabled?: boolean | undefined;
|
|
32
|
+
videoReportNotes?: string | undefined;
|
|
33
|
+
photoReportNotes?: string | undefined;
|
|
34
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reportingHandbookSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.reportingHandbookSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
status: (0, zod_1.union)([(0, zod_1.literal)("NOT_STARTED"), (0, zod_1.literal)("IN_PROGRESS"), (0, zod_1.literal)("COMPLETED")]),
|
|
8
|
+
damageReportEnabled: (0, zod_1.boolean)().optional(),
|
|
9
|
+
videoReportEnabled: (0, zod_1.boolean)().optional(),
|
|
10
|
+
photoReportEnabled: (0, zod_1.boolean)().optional(),
|
|
11
|
+
videoReportNotes: (0, zod_1.string)().optional(),
|
|
12
|
+
photoReportNotes: (0, zod_1.string)().optional(),
|
|
13
|
+
roomId: (0, zod_1.number)().int(),
|
|
14
|
+
createdAt: (0, zod_1.date)(),
|
|
15
|
+
updatedAt: (0, zod_1.date)(),
|
|
16
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const suppliesAndNotesHandbookSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
cleaningSuppliesEnabled: import("zod").ZodBoolean;
|
|
4
|
+
hasVacuum: import("zod").ZodBoolean;
|
|
5
|
+
hasDetergents: import("zod").ZodBoolean;
|
|
6
|
+
hasTrashBags: import("zod").ZodBoolean;
|
|
7
|
+
hasWashingMachine: import("zod").ZodBoolean;
|
|
8
|
+
hasTowelsAndRags: import("zod").ZodBoolean;
|
|
9
|
+
hasMop: import("zod").ZodBoolean;
|
|
10
|
+
hasBeddingAndLinen: import("zod").ZodBoolean;
|
|
11
|
+
suppliesNotes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
detergentsAutoRestockEnabled: import("zod").ZodBoolean;
|
|
13
|
+
additionalNotes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
status: import("zod").ZodUnion<[import("zod").ZodLiteral<"NOT_STARTED">, import("zod").ZodLiteral<"IN_PROGRESS">, import("zod").ZodLiteral<"COMPLETED">]>;
|
|
15
|
+
roomId: import("zod").ZodNumber;
|
|
16
|
+
createdAt: import("zod").ZodDate;
|
|
17
|
+
updatedAt: import("zod").ZodDate;
|
|
18
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
19
|
+
id: number;
|
|
20
|
+
status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
roomId: number;
|
|
24
|
+
cleaningSuppliesEnabled: boolean;
|
|
25
|
+
hasVacuum: boolean;
|
|
26
|
+
hasDetergents: boolean;
|
|
27
|
+
hasTrashBags: boolean;
|
|
28
|
+
hasWashingMachine: boolean;
|
|
29
|
+
hasTowelsAndRags: boolean;
|
|
30
|
+
hasMop: boolean;
|
|
31
|
+
hasBeddingAndLinen: boolean;
|
|
32
|
+
detergentsAutoRestockEnabled: boolean;
|
|
33
|
+
suppliesNotes?: string | undefined;
|
|
34
|
+
additionalNotes?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
id: number;
|
|
37
|
+
status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
roomId: number;
|
|
41
|
+
cleaningSuppliesEnabled: boolean;
|
|
42
|
+
hasVacuum: boolean;
|
|
43
|
+
hasDetergents: boolean;
|
|
44
|
+
hasTrashBags: boolean;
|
|
45
|
+
hasWashingMachine: boolean;
|
|
46
|
+
hasTowelsAndRags: boolean;
|
|
47
|
+
hasMop: boolean;
|
|
48
|
+
hasBeddingAndLinen: boolean;
|
|
49
|
+
detergentsAutoRestockEnabled: boolean;
|
|
50
|
+
suppliesNotes?: string | undefined;
|
|
51
|
+
additionalNotes?: string | undefined;
|
|
52
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.suppliesAndNotesHandbookSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.suppliesAndNotesHandbookSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
cleaningSuppliesEnabled: (0, zod_1.boolean)(),
|
|
8
|
+
hasVacuum: (0, zod_1.boolean)(),
|
|
9
|
+
hasDetergents: (0, zod_1.boolean)(),
|
|
10
|
+
hasTrashBags: (0, zod_1.boolean)(),
|
|
11
|
+
hasWashingMachine: (0, zod_1.boolean)(),
|
|
12
|
+
hasTowelsAndRags: (0, zod_1.boolean)(),
|
|
13
|
+
hasMop: (0, zod_1.boolean)(),
|
|
14
|
+
hasBeddingAndLinen: (0, zod_1.boolean)(),
|
|
15
|
+
suppliesNotes: (0, zod_1.string)().optional(),
|
|
16
|
+
detergentsAutoRestockEnabled: (0, zod_1.boolean)(),
|
|
17
|
+
additionalNotes: (0, zod_1.string)().optional(),
|
|
18
|
+
status: (0, zod_1.union)([(0, zod_1.literal)("NOT_STARTED"), (0, zod_1.literal)("IN_PROGRESS"), (0, zod_1.literal)("COMPLETED")]),
|
|
19
|
+
roomId: (0, zod_1.number)().int(),
|
|
20
|
+
createdAt: (0, zod_1.date)(),
|
|
21
|
+
updatedAt: (0, zod_1.date)(),
|
|
22
|
+
});
|
|
@@ -26,6 +26,16 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
26
26
|
hasCleaningEquipment: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
27
27
|
shouldReplaceBedding: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
28
28
|
internalNotes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
cleanerOnTheWayAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
30
|
+
cleanerArrivedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
31
|
+
isTaskAcceptedByWorker: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
32
|
+
timeAvailableForJob: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
33
|
+
suppliesPurchased: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
34
|
+
suppliesPurchasedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
35
|
+
isDamageNoticedAnswered: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
36
|
+
isDamageNoticed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
37
|
+
damageDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
cleaningDetergentFillPercentage: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
29
39
|
}, "strip", import("zod").ZodTypeAny, {
|
|
30
40
|
id: number;
|
|
31
41
|
priority: TaskPriority;
|
|
@@ -53,6 +63,16 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
53
63
|
paymentProcessedMessageId?: string | undefined;
|
|
54
64
|
hasCleaningEquipment?: boolean | undefined;
|
|
55
65
|
shouldReplaceBedding?: boolean | undefined;
|
|
66
|
+
cleanerOnTheWayAt?: Date | undefined;
|
|
67
|
+
cleanerArrivedAt?: Date | undefined;
|
|
68
|
+
isTaskAcceptedByWorker?: boolean | undefined;
|
|
69
|
+
timeAvailableForJob?: number | undefined;
|
|
70
|
+
suppliesPurchased?: boolean | undefined;
|
|
71
|
+
suppliesPurchasedAt?: Date | undefined;
|
|
72
|
+
isDamageNoticedAnswered?: boolean | undefined;
|
|
73
|
+
isDamageNoticed?: boolean | undefined;
|
|
74
|
+
damageDescription?: string | undefined;
|
|
75
|
+
cleaningDetergentFillPercentage?: number | undefined;
|
|
56
76
|
}, {
|
|
57
77
|
id: number;
|
|
58
78
|
priority: TaskPriority;
|
|
@@ -80,4 +100,14 @@ export declare const taskSchema: import("zod").ZodObject<{
|
|
|
80
100
|
paymentProcessedMessageId?: string | undefined;
|
|
81
101
|
hasCleaningEquipment?: boolean | undefined;
|
|
82
102
|
shouldReplaceBedding?: boolean | undefined;
|
|
103
|
+
cleanerOnTheWayAt?: Date | undefined;
|
|
104
|
+
cleanerArrivedAt?: Date | undefined;
|
|
105
|
+
isTaskAcceptedByWorker?: boolean | undefined;
|
|
106
|
+
timeAvailableForJob?: number | undefined;
|
|
107
|
+
suppliesPurchased?: boolean | undefined;
|
|
108
|
+
suppliesPurchasedAt?: Date | undefined;
|
|
109
|
+
isDamageNoticedAnswered?: boolean | undefined;
|
|
110
|
+
isDamageNoticed?: boolean | undefined;
|
|
111
|
+
damageDescription?: string | undefined;
|
|
112
|
+
cleaningDetergentFillPercentage?: number | undefined;
|
|
83
113
|
}>;
|
|
@@ -30,4 +30,14 @@ exports.taskSchema = (0, zod_1.object)({
|
|
|
30
30
|
hasCleaningEquipment: (0, zod_1.boolean)().optional(),
|
|
31
31
|
shouldReplaceBedding: (0, zod_1.boolean)().optional(),
|
|
32
32
|
internalNotes: (0, zod_1.string)().optional(),
|
|
33
|
+
cleanerOnTheWayAt: (0, zod_1.date)().optional(),
|
|
34
|
+
cleanerArrivedAt: (0, zod_1.date)().optional(),
|
|
35
|
+
isTaskAcceptedByWorker: (0, zod_1.boolean)().optional(),
|
|
36
|
+
timeAvailableForJob: (0, zod_1.number)().int().optional(),
|
|
37
|
+
suppliesPurchased: (0, zod_1.boolean)().optional(),
|
|
38
|
+
suppliesPurchasedAt: (0, zod_1.date)().optional(),
|
|
39
|
+
isDamageNoticedAnswered: (0, zod_1.boolean)().optional(),
|
|
40
|
+
isDamageNoticed: (0, zod_1.boolean)().optional(),
|
|
41
|
+
damageDescription: (0, zod_1.string)().optional(),
|
|
42
|
+
cleaningDetergentFillPercentage: (0, zod_1.number)().int().optional(),
|
|
33
43
|
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const taskAssignmentSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
workerId: import("zod").ZodNumber;
|
|
5
|
+
status: import("zod").ZodUnion<[import("zod").ZodLiteral<"ASSIGNED">, import("zod").ZodLiteral<"ACCEPTED">, import("zod").ZodLiteral<"REJECTED">]>;
|
|
6
|
+
assignedAt: import("zod").ZodDate;
|
|
7
|
+
acceptedAt: import("zod").ZodDate;
|
|
8
|
+
rejectedAt: import("zod").ZodDate;
|
|
9
|
+
createdAt: import("zod").ZodDate;
|
|
10
|
+
updatedAt: import("zod").ZodDate;
|
|
11
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
12
|
+
id: number;
|
|
13
|
+
status: "REJECTED" | "ACCEPTED" | "ASSIGNED";
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
taskId: number;
|
|
17
|
+
acceptedAt: Date;
|
|
18
|
+
workerId: number;
|
|
19
|
+
assignedAt: Date;
|
|
20
|
+
rejectedAt: Date;
|
|
21
|
+
}, {
|
|
22
|
+
id: number;
|
|
23
|
+
status: "REJECTED" | "ACCEPTED" | "ASSIGNED";
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
taskId: number;
|
|
27
|
+
acceptedAt: Date;
|
|
28
|
+
workerId: number;
|
|
29
|
+
assignedAt: Date;
|
|
30
|
+
rejectedAt: Date;
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskAssignmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskAssignmentSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)(),
|
|
8
|
+
workerId: (0, zod_1.number)(),
|
|
9
|
+
status: (0, zod_1.union)([(0, zod_1.literal)("ASSIGNED"), (0, zod_1.literal)("ACCEPTED"), (0, zod_1.literal)("REJECTED")]),
|
|
10
|
+
assignedAt: (0, zod_1.date)(),
|
|
11
|
+
acceptedAt: (0, zod_1.date)(),
|
|
12
|
+
rejectedAt: (0, zod_1.date)(),
|
|
13
|
+
createdAt: (0, zod_1.date)(),
|
|
14
|
+
updatedAt: (0, zod_1.date)(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const taskChecklistSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
sourceChecklistId: import("zod").ZodNumber;
|
|
5
|
+
title: import("zod").ZodString;
|
|
6
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
taskId: number;
|
|
15
|
+
sourceChecklistId: number;
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
id: number;
|
|
19
|
+
title: string;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
taskId: number;
|
|
23
|
+
sourceChecklistId: number;
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskChecklistSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskChecklistSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)(),
|
|
8
|
+
sourceChecklistId: (0, zod_1.number)(),
|
|
9
|
+
title: (0, zod_1.string)(),
|
|
10
|
+
description: (0, zod_1.string)().optional(),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const taskChecklistItemSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskChecklistSpaceId: import("zod").ZodNumber;
|
|
4
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
completed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
id: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
taskChecklistSpaceId: number;
|
|
14
|
+
completed?: boolean | undefined;
|
|
15
|
+
content?: string | undefined;
|
|
16
|
+
completedAt?: Date | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
id: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
taskChecklistSpaceId: number;
|
|
22
|
+
completed?: boolean | undefined;
|
|
23
|
+
content?: string | undefined;
|
|
24
|
+
completedAt?: Date | undefined;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskChecklistItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskChecklistItemSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskChecklistSpaceId: (0, zod_1.number)(),
|
|
8
|
+
content: (0, zod_1.string)().optional(),
|
|
9
|
+
completed: (0, zod_1.boolean)().optional(),
|
|
10
|
+
completedAt: (0, zod_1.date)().optional(),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const taskChecklistSpaceSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskChecklistId: import("zod").ZodNumber;
|
|
4
|
+
propertyRoomId: import("zod").ZodNumber;
|
|
5
|
+
roomName: import("zod").ZodString;
|
|
6
|
+
roomType: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"LIVING_ROOM">, import("zod").ZodLiteral<"BEDROOM">]>, import("zod").ZodLiteral<"KITCHEN">]>, import("zod").ZodLiteral<"BATHROOM">]>, import("zod").ZodLiteral<"BALCONY">]>, import("zod").ZodLiteral<"TOILET">]>, import("zod").ZodLiteral<"OTHER">]>, import("zod").ZodLiteral<"DINING_ROOM">]>, import("zod").ZodLiteral<"OUTDOOR">]>, import("zod").ZodLiteral<"WORKSPACE">]>, import("zod").ZodLiteral<"STORAGE">]>, import("zod").ZodLiteral<"COMMON_SPACE">]>;
|
|
7
|
+
createdAt: import("zod").ZodDate;
|
|
8
|
+
updatedAt: import("zod").ZodDate;
|
|
9
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
id: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
propertyRoomId: number;
|
|
14
|
+
taskChecklistId: number;
|
|
15
|
+
roomName: string;
|
|
16
|
+
roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
|
|
17
|
+
}, {
|
|
18
|
+
id: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
propertyRoomId: number;
|
|
22
|
+
taskChecklistId: number;
|
|
23
|
+
roomName: string;
|
|
24
|
+
roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskChecklistSpaceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskChecklistSpaceSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskChecklistId: (0, zod_1.number)(),
|
|
8
|
+
propertyRoomId: (0, zod_1.number)(),
|
|
9
|
+
roomName: (0, zod_1.string)(),
|
|
10
|
+
roomType: (0, zod_1.literal)("LIVING_ROOM")
|
|
11
|
+
.or((0, zod_1.literal)("BEDROOM"))
|
|
12
|
+
.or((0, zod_1.literal)("KITCHEN"))
|
|
13
|
+
.or((0, zod_1.literal)("BATHROOM"))
|
|
14
|
+
.or((0, zod_1.literal)("BALCONY"))
|
|
15
|
+
.or((0, zod_1.literal)("TOILET"))
|
|
16
|
+
.or((0, zod_1.literal)("OTHER"))
|
|
17
|
+
.or((0, zod_1.literal)("DINING_ROOM"))
|
|
18
|
+
.or((0, zod_1.literal)("OUTDOOR"))
|
|
19
|
+
.or((0, zod_1.literal)("WORKSPACE"))
|
|
20
|
+
.or((0, zod_1.literal)("STORAGE"))
|
|
21
|
+
.or((0, zod_1.literal)("COMMON_SPACE")),
|
|
22
|
+
createdAt: (0, zod_1.date)(),
|
|
23
|
+
updatedAt: (0, zod_1.date)(),
|
|
24
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const taskDamagePhotoSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
url: import("zod").ZodString;
|
|
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.taskDamagePhotoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskDamagePhotoSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)(),
|
|
8
|
+
url: (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 taskReferencePhotoSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
url: import("zod").ZodString;
|
|
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.taskReferencePhotoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskReferencePhotoSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)(),
|
|
8
|
+
url: (0, zod_1.string)(),
|
|
9
|
+
createdAt: (0, zod_1.date)(),
|
|
10
|
+
updatedAt: (0, zod_1.date)(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const taskSpacePhotoSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskChecklistSpaceId: import("zod").ZodNumber;
|
|
4
|
+
type: import("zod").ZodUnion<[import("zod").ZodLiteral<"BEFORE">, import("zod").ZodLiteral<"AFTER">]>;
|
|
5
|
+
url: import("zod").ZodString;
|
|
6
|
+
createdAt: import("zod").ZodDate;
|
|
7
|
+
updatedAt: import("zod").ZodDate;
|
|
8
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9
|
+
type: "BEFORE" | "AFTER";
|
|
10
|
+
id: number;
|
|
11
|
+
url: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
taskChecklistSpaceId: number;
|
|
15
|
+
}, {
|
|
16
|
+
type: "BEFORE" | "AFTER";
|
|
17
|
+
id: number;
|
|
18
|
+
url: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
taskChecklistSpaceId: number;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskSpacePhotoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskSpacePhotoSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskChecklistSpaceId: (0, zod_1.number)(),
|
|
8
|
+
type: (0, zod_1.union)([(0, zod_1.literal)("BEFORE"), (0, zod_1.literal)("AFTER")]),
|
|
9
|
+
url: (0, zod_1.string)(),
|
|
10
|
+
createdAt: (0, zod_1.date)(),
|
|
11
|
+
updatedAt: (0, zod_1.date)(),
|
|
12
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const taskSpaceVideoSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskChecklistSpaceId: import("zod").ZodNumber;
|
|
4
|
+
type: import("zod").ZodUnion<[import("zod").ZodLiteral<"BEFORE">, import("zod").ZodLiteral<"AFTER">]>;
|
|
5
|
+
url: import("zod").ZodString;
|
|
6
|
+
duration: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
7
|
+
thumbnailUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
createdAt: import("zod").ZodDate;
|
|
9
|
+
updatedAt: import("zod").ZodDate;
|
|
10
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
11
|
+
type: "BEFORE" | "AFTER";
|
|
12
|
+
id: number;
|
|
13
|
+
url: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
taskChecklistSpaceId: number;
|
|
17
|
+
duration?: number | undefined;
|
|
18
|
+
thumbnailUrl?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
type: "BEFORE" | "AFTER";
|
|
21
|
+
id: number;
|
|
22
|
+
url: string;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
taskChecklistSpaceId: number;
|
|
26
|
+
duration?: number | undefined;
|
|
27
|
+
thumbnailUrl?: string | undefined;
|
|
28
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskSpaceVideoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskSpaceVideoSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskChecklistSpaceId: (0, zod_1.number)(),
|
|
8
|
+
type: (0, zod_1.union)([(0, zod_1.literal)("BEFORE"), (0, zod_1.literal)("AFTER")]),
|
|
9
|
+
url: (0, zod_1.string)(),
|
|
10
|
+
duration: (0, zod_1.number)().int().optional(),
|
|
11
|
+
thumbnailUrl: (0, zod_1.string)().optional(),
|
|
12
|
+
createdAt: (0, zod_1.date)(),
|
|
13
|
+
updatedAt: (0, zod_1.date)(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const taskSupplyReceiptSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
url: import("zod").ZodString;
|
|
5
|
+
cost: import("zod").ZodNumber;
|
|
6
|
+
createdAt: import("zod").ZodDate;
|
|
7
|
+
updatedAt: import("zod").ZodDate;
|
|
8
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9
|
+
id: number;
|
|
10
|
+
url: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
taskId: number;
|
|
14
|
+
cost: number;
|
|
15
|
+
}, {
|
|
16
|
+
id: number;
|
|
17
|
+
url: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
taskId: number;
|
|
21
|
+
cost: number;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskSupplyReceiptSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskSupplyReceiptSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)(),
|
|
8
|
+
url: (0, zod_1.string)(),
|
|
9
|
+
cost: (0, zod_1.number)().int(),
|
|
10
|
+
createdAt: (0, zod_1.date)(),
|
|
11
|
+
updatedAt: (0, zod_1.date)(),
|
|
12
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { Room } from "../room";
|
|
3
|
+
import { PropertyRoom } from "../property-room";
|
|
4
|
+
import { cleaningChecklistItemSchema, cleaningChecklistPropertyRoomSchema, cleaningChecklistSchema } from "../../schemas/cleaning-checklist";
|
|
5
|
+
export interface CleaningChecklist extends infer<typeof cleaningChecklistSchema> {
|
|
6
|
+
room?: Room;
|
|
7
|
+
spaces?: CleaningChecklistPropertyRoom[];
|
|
8
|
+
}
|
|
9
|
+
export interface CleaningChecklistPropertyRoom extends infer<typeof cleaningChecklistPropertyRoomSchema> {
|
|
10
|
+
cleaningChecklist?: CleaningChecklist;
|
|
11
|
+
propertyRoom?: PropertyRoom;
|
|
12
|
+
items?: CleaningChecklistItem[];
|
|
13
|
+
}
|
|
14
|
+
export interface CleaningChecklistItem extends infer<typeof cleaningChecklistItemSchema> {
|
|
15
|
+
cleaningChecklistPropertyRoom?: CleaningChecklistPropertyRoom;
|
|
16
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -68,3 +68,15 @@ export * from "./custom-bundle-coupon";
|
|
|
68
68
|
export * from "./pending-payment-action";
|
|
69
69
|
export * from "./seam";
|
|
70
70
|
export * from "./klevio";
|
|
71
|
+
export * from "./task-checklist";
|
|
72
|
+
export * from "./task-checklist-space";
|
|
73
|
+
export * from "./task-checklist-item";
|
|
74
|
+
export * from "./task-space-photo";
|
|
75
|
+
export * from "./task-space-video";
|
|
76
|
+
export * from "./task-damage-photo";
|
|
77
|
+
export * from "./task-supply-receipt";
|
|
78
|
+
export * from "./task-reference-photo";
|
|
79
|
+
export * from "./task-assignment";
|
|
80
|
+
export * from "./cleaning-checklist";
|
|
81
|
+
export * from './reporting-handbook';
|
|
82
|
+
export * from './supplies-and-notes-handbook';
|
package/dist/types/index.js
CHANGED
|
@@ -84,3 +84,15 @@ __exportStar(require("./custom-bundle-coupon"), exports);
|
|
|
84
84
|
__exportStar(require("./pending-payment-action"), exports);
|
|
85
85
|
__exportStar(require("./seam"), exports);
|
|
86
86
|
__exportStar(require("./klevio"), exports);
|
|
87
|
+
__exportStar(require("./task-checklist"), exports);
|
|
88
|
+
__exportStar(require("./task-checklist-space"), exports);
|
|
89
|
+
__exportStar(require("./task-checklist-item"), exports);
|
|
90
|
+
__exportStar(require("./task-space-photo"), exports);
|
|
91
|
+
__exportStar(require("./task-space-video"), exports);
|
|
92
|
+
__exportStar(require("./task-damage-photo"), exports);
|
|
93
|
+
__exportStar(require("./task-supply-receipt"), exports);
|
|
94
|
+
__exportStar(require("./task-reference-photo"), exports);
|
|
95
|
+
__exportStar(require("./task-assignment"), exports);
|
|
96
|
+
__exportStar(require("./cleaning-checklist"), exports);
|
|
97
|
+
__exportStar(require("./reporting-handbook"), exports);
|
|
98
|
+
__exportStar(require("./supplies-and-notes-handbook"), exports);
|
|
@@ -5,6 +5,10 @@ import { RatePlan } from "../rate-plan";
|
|
|
5
5
|
import { ReservationRoom } from "../room-reservation";
|
|
6
6
|
import { BlockedDate } from "../blocked-date";
|
|
7
7
|
import { Availability } from "../availability";
|
|
8
|
+
import { ReportingHandbook } from "../reporting-handbook";
|
|
9
|
+
import { CleaningChecklist } from "../cleaning-checklist";
|
|
10
|
+
import { SuppliesAndNotesHandbook } from "../supplies-and-notes-handbook";
|
|
11
|
+
import { Task } from "../task";
|
|
8
12
|
export interface Room extends infer<typeof roomSchema> {
|
|
9
13
|
ratePlans?: RatePlan[];
|
|
10
14
|
property?: Property;
|
|
@@ -13,4 +17,8 @@ export interface Room extends infer<typeof roomSchema> {
|
|
|
13
17
|
originalRoom?: Room;
|
|
14
18
|
derivedRooms?: Room[];
|
|
15
19
|
availabilities?: Availability[];
|
|
20
|
+
reportingHandbook?: ReportingHandbook;
|
|
21
|
+
cleaningChecklists?: CleaningChecklist[];
|
|
22
|
+
suppliesAndNotesHandbook?: SuppliesAndNotesHandbook;
|
|
23
|
+
tasks?: Task[];
|
|
16
24
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { Room } from "../room";
|
|
3
|
+
import { suppliesAndNotesHandbookSchema } from "../../schemas/supplies-and-notes-handbook";
|
|
4
|
+
export interface SuppliesAndNotesHandbook extends infer<typeof suppliesAndNotesHandbookSchema> {
|
|
5
|
+
room?: Room;
|
|
6
|
+
}
|
|
@@ -16,6 +16,11 @@ import { User } from "../user";
|
|
|
16
16
|
import { TaskWorkerReview } from "../task-worker-review";
|
|
17
17
|
import { TaskRequirementVideo } from "../task-requirement-video";
|
|
18
18
|
import { TaskOverviewVideo } from "../task-overview-video";
|
|
19
|
+
import { TaskReferencePhoto } from "../task-reference-photo";
|
|
20
|
+
import { TaskSupplyReceipt } from "../task-supply-receipt";
|
|
21
|
+
import { TaskChecklist } from "../task-checklist";
|
|
22
|
+
import { TaskDamagePhoto } from "../task-damage-photo";
|
|
23
|
+
import { TaskAssignment } from "../task-assignment";
|
|
19
24
|
export interface Task extends infer<typeof taskSchema> {
|
|
20
25
|
property?: Property;
|
|
21
26
|
department?: TaskDepartment;
|
|
@@ -36,4 +41,9 @@ export interface Task extends infer<typeof taskSchema> {
|
|
|
36
41
|
cancelledByUser?: User;
|
|
37
42
|
reviews?: TaskWorkerReview[];
|
|
38
43
|
overviewVideo?: TaskOverviewVideo;
|
|
44
|
+
referencePhotos?: TaskReferencePhoto[];
|
|
45
|
+
supplyReceipts?: TaskSupplyReceipt[];
|
|
46
|
+
taskChecklist?: TaskChecklist;
|
|
47
|
+
damagePhotos?: TaskDamagePhoto[];
|
|
48
|
+
taskAssignments?: TaskAssignment[];
|
|
39
49
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { Task } from "../task";
|
|
3
|
+
import { taskAssignmentSchema } from "../../schemas/task-assignment";
|
|
4
|
+
import { ServiceWorker } from "../service-worker";
|
|
5
|
+
export interface TaskAssignment extends infer<typeof taskAssignmentSchema> {
|
|
6
|
+
task?: Task;
|
|
7
|
+
worker?: ServiceWorker;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { Task } from "../task";
|
|
3
|
+
import { taskChecklistSchema } from "../../schemas/task-checklist";
|
|
4
|
+
import { CleaningChecklist } from "../cleaning-checklist";
|
|
5
|
+
import { TaskChecklistSpace } from "../task-checklist-space";
|
|
6
|
+
export interface TaskChecklist extends infer<typeof taskChecklistSchema> {
|
|
7
|
+
task?: Task;
|
|
8
|
+
sourceChecklist?: CleaningChecklist;
|
|
9
|
+
spaces?: TaskChecklistSpace[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskChecklistItemSchema } from "../../schemas/task-checklist-item";
|
|
3
|
+
import { TaskChecklistSpace } from "../task-checklist-space";
|
|
4
|
+
export interface TaskChecklistItem extends infer<typeof taskChecklistItemSchema> {
|
|
5
|
+
taskChecklistSpace?: TaskChecklistSpace;
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskChecklistSpaceSchema } from "../../schemas/task-checklist-space";
|
|
3
|
+
import { PropertyRoom } from "../property-room";
|
|
4
|
+
import { TaskChecklistItem } from "../task-checklist-item";
|
|
5
|
+
import { TaskSpacePhoto } from "../task-space-photo";
|
|
6
|
+
import { TaskSpaceVideo } from "../task-space-video";
|
|
7
|
+
import { TaskChecklist } from "../task-checklist";
|
|
8
|
+
export interface TaskChecklistSpace extends infer<typeof taskChecklistSpaceSchema> {
|
|
9
|
+
taskChecklist?: TaskChecklist;
|
|
10
|
+
propertyRoom?: PropertyRoom;
|
|
11
|
+
items?: TaskChecklistItem[];
|
|
12
|
+
videos?: TaskSpaceVideo[];
|
|
13
|
+
photos?: TaskSpacePhoto[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskSpacePhotoSchema } from "../../schemas/task-space-photo";
|
|
3
|
+
import { TaskChecklistSpace } from "../task-checklist-space";
|
|
4
|
+
export interface TaskSpacePhoto extends infer<typeof taskSpacePhotoSchema> {
|
|
5
|
+
taskChecklistSpace?: TaskChecklistSpace;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { taskSpaceVideoSchema } from "../../schemas/task-space-video";
|
|
3
|
+
import { TaskChecklistSpace } from "../task-checklist-space";
|
|
4
|
+
export interface TaskSpaceVideo extends infer<typeof taskSpaceVideoSchema> {
|
|
5
|
+
taskChecklistSpace?: TaskChecklistSpace;
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "commonjs",
|
|
3
3
|
"name": "hububb-saas-shared",
|
|
4
|
-
"version": "1.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "This is a shared package for the hububb saas project",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"typescript": "^5.7.2"
|
|
34
34
|
},
|
|
35
35
|
"packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
|
|
36
|
-
}
|
|
36
|
+
}
|