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.
@@ -1,7 +1,6 @@
1
1
  export declare enum ServiceType {
2
- INTEGRATION = "INTEGRATION",
3
- ON_DEMAND = "ON_DEMAND",
4
- RECURRING = "RECURRING"
2
+ ON_DEMAND = "FULL",
3
+ SUBSCRIPTION = "PRORATED"
5
4
  }
6
5
  export declare enum TaskStatus {
7
6
  PENDING = "PENDING",
@@ -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["INTEGRATION"] = "INTEGRATION";
7
- ServiceType["ON_DEMAND"] = "ON_DEMAND";
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
  }>;
@@ -12,4 +12,5 @@ exports.imageSchema = (0, zod_1.object)({
12
12
  caption: (0, zod_1.string)().nullish(),
13
13
  createdAt: (0, zod_1.date)(),
14
14
  updatedAt: (0, zod_1.date)(),
15
+ roomImageId: (0, zod_1.number)().int().nullish(),
15
16
  });
@@ -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";
@@ -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
  }
@@ -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";
@@ -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);
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { roomImageSchema } from "../../schemas/room-image";
3
+ import { Image } from "../image";
4
+ export interface RoomImage extends infer<typeof roomImageSchema> {
5
+ images?: Image[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  }
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { Task } from "../task";
3
+ import { taskOverviewVideoSchema } from "../../schemas/task-overview-video";
4
+ export interface TaskOverviewVideo extends infer<typeof taskOverviewVideoSchema> {
5
+ task?: Task;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.1.13",
4
+ "version": "1.1.15",
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",