hububb-saas-shared 1.1.13 → 1.1.15
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 -3
- package/dist/schemas/enums/index.js +2 -3
- package/dist/schemas/image/index.d.ts +3 -0
- package/dist/schemas/image/index.js +1 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/room-image/index.d.ts +19 -0
- package/dist/schemas/room-image/index.js +17 -0
- package/dist/schemas/task-overview-video/index.d.ts +25 -0
- package/dist/schemas/task-overview-video/index.js +13 -0
- package/dist/types/image/index.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/room-image/index.d.ts +6 -0
- package/dist/types/room-image/index.js +2 -0
- package/dist/types/task/index.d.ts +2 -0
- package/dist/types/task-overview-video/index.d.ts +6 -0
- package/dist/types/task-overview-video/index.js +2 -0
- package/package.json +1 -1
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
|
|
4
4
|
var ServiceType;
|
|
5
5
|
(function (ServiceType) {
|
|
6
|
-
ServiceType["
|
|
7
|
-
ServiceType["
|
|
8
|
-
ServiceType["RECURRING"] = "RECURRING";
|
|
6
|
+
ServiceType["ON_DEMAND"] = "FULL";
|
|
7
|
+
ServiceType["SUBSCRIPTION"] = "PRORATED";
|
|
9
8
|
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
10
9
|
var TaskStatus;
|
|
11
10
|
(function (TaskStatus) {
|
|
@@ -8,6 +8,7 @@ export declare const imageSchema: import("zod").ZodObject<{
|
|
|
8
8
|
caption: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
9
9
|
createdAt: import("zod").ZodDate;
|
|
10
10
|
updatedAt: import("zod").ZodDate;
|
|
11
|
+
roomImageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
11
12
|
}, "strip", import("zod").ZodTypeAny, {
|
|
12
13
|
id: number;
|
|
13
14
|
createdAt: Date;
|
|
@@ -18,6 +19,7 @@ export declare const imageSchema: import("zod").ZodObject<{
|
|
|
18
19
|
mediumUrl?: string | null | undefined;
|
|
19
20
|
thumbnailUrl?: string | null | undefined;
|
|
20
21
|
sortOrder?: number | null | undefined;
|
|
22
|
+
roomImageId?: number | null | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
id: number;
|
|
23
25
|
createdAt: Date;
|
|
@@ -28,4 +30,5 @@ export declare const imageSchema: import("zod").ZodObject<{
|
|
|
28
30
|
mediumUrl?: string | null | undefined;
|
|
29
31
|
thumbnailUrl?: string | null | undefined;
|
|
30
32
|
sortOrder?: number | null | undefined;
|
|
33
|
+
roomImageId?: number | null | undefined;
|
|
31
34
|
}>;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -50,4 +50,6 @@ export * from "./task-requirement";
|
|
|
50
50
|
export * from "./task-requirement-photo";
|
|
51
51
|
export * from "./task-thread";
|
|
52
52
|
export * from "./task-worker-review";
|
|
53
|
+
export * from "./room-image";
|
|
53
54
|
export * from "./task-requirement-video";
|
|
55
|
+
export * from "./task-overview-video";
|
package/dist/schemas/index.js
CHANGED
|
@@ -66,4 +66,6 @@ __exportStar(require("./task-requirement"), exports);
|
|
|
66
66
|
__exportStar(require("./task-requirement-photo"), exports);
|
|
67
67
|
__exportStar(require("./task-thread"), exports);
|
|
68
68
|
__exportStar(require("./task-worker-review"), exports);
|
|
69
|
+
__exportStar(require("./room-image"), exports);
|
|
69
70
|
__exportStar(require("./task-requirement-video"), exports);
|
|
71
|
+
__exportStar(require("./task-overview-video"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const roomImageSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
type: 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">]>;
|
|
5
|
+
createdAt: import("zod").ZodDate;
|
|
6
|
+
updatedAt: import("zod").ZodDate;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
type: "LIVING_ROOM" | "BEDROOM" | "KITCHEN" | "BATHROOM" | "BALCONY" | "TOILET" | "OTHER";
|
|
10
|
+
id: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}, {
|
|
14
|
+
name: string;
|
|
15
|
+
type: "LIVING_ROOM" | "BEDROOM" | "KITCHEN" | "BATHROOM" | "BALCONY" | "TOILET" | "OTHER";
|
|
16
|
+
id: number;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.roomImageSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.roomImageSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
name: (0, zod_1.string)(),
|
|
8
|
+
type: (0, zod_1.literal)("LIVING_ROOM")
|
|
9
|
+
.or((0, zod_1.literal)("BEDROOM"))
|
|
10
|
+
.or((0, zod_1.literal)("KITCHEN"))
|
|
11
|
+
.or((0, zod_1.literal)("BATHROOM"))
|
|
12
|
+
.or((0, zod_1.literal)("BALCONY"))
|
|
13
|
+
.or((0, zod_1.literal)("TOILET"))
|
|
14
|
+
.or((0, zod_1.literal)("OTHER")),
|
|
15
|
+
createdAt: (0, zod_1.date)(),
|
|
16
|
+
updatedAt: (0, zod_1.date)(),
|
|
17
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const taskOverviewVideoSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
taskId: import("zod").ZodNumber;
|
|
4
|
+
url: import("zod").ZodString;
|
|
5
|
+
duration: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6
|
+
thumbnailUrl: 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
|
+
url: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
taskId: number;
|
|
15
|
+
duration?: number | undefined;
|
|
16
|
+
thumbnailUrl?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
id: number;
|
|
19
|
+
url: string;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
taskId: number;
|
|
23
|
+
duration?: number | undefined;
|
|
24
|
+
thumbnailUrl?: string | undefined;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskOverviewVideoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.taskOverviewVideoSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
taskId: (0, zod_1.number)(),
|
|
8
|
+
url: (0, zod_1.string)(),
|
|
9
|
+
duration: (0, zod_1.number)().int().optional(),
|
|
10
|
+
thumbnailUrl: (0, zod_1.string)().optional(),
|
|
11
|
+
createdAt: (0, zod_1.date)(),
|
|
12
|
+
updatedAt: (0, zod_1.date)(),
|
|
13
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { infer } from "zod";
|
|
2
2
|
import { Property } from "../property";
|
|
3
3
|
import { imageSchema } from "../../schemas/image";
|
|
4
|
+
import { RoomImage } from "../room-image";
|
|
4
5
|
export interface Image extends infer<typeof imageSchema> {
|
|
5
6
|
property?: Property;
|
|
7
|
+
roomImage?: RoomImage;
|
|
6
8
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,4 +51,6 @@ export * from "./task-requirement";
|
|
|
51
51
|
export * from "./task-requirement-photo";
|
|
52
52
|
export * from "./task-thread";
|
|
53
53
|
export * from "./task-worker-review";
|
|
54
|
+
export * from "./room-image";
|
|
54
55
|
export * from "./task-requirement-video";
|
|
56
|
+
export * from "./task-overview-video";
|
package/dist/types/index.js
CHANGED
|
@@ -67,4 +67,6 @@ __exportStar(require("./task-requirement"), exports);
|
|
|
67
67
|
__exportStar(require("./task-requirement-photo"), exports);
|
|
68
68
|
__exportStar(require("./task-thread"), exports);
|
|
69
69
|
__exportStar(require("./task-worker-review"), exports);
|
|
70
|
+
__exportStar(require("./room-image"), exports);
|
|
70
71
|
__exportStar(require("./task-requirement-video"), exports);
|
|
72
|
+
__exportStar(require("./task-overview-video"), exports);
|
|
@@ -15,6 +15,7 @@ import { TaskRequirement } from "../task-requirement";
|
|
|
15
15
|
import { User } from "../user";
|
|
16
16
|
import { TaskWorkerReview } from "../task-worker-review";
|
|
17
17
|
import { TaskRequirementVideo } from "../task-requirement-video";
|
|
18
|
+
import { TaskOverviewVideo } from "../task-overview-video";
|
|
18
19
|
export interface Task extends infer<typeof taskSchema> {
|
|
19
20
|
property?: Property;
|
|
20
21
|
department?: TaskDepartment;
|
|
@@ -34,4 +35,5 @@ export interface Task extends infer<typeof taskSchema> {
|
|
|
34
35
|
confirmedByUser?: User;
|
|
35
36
|
cancelledByUser?: User;
|
|
36
37
|
reviews?: TaskWorkerReview[];
|
|
38
|
+
overviewVideo?: TaskOverviewVideo;
|
|
37
39
|
}
|