hububb-saas-shared 1.0.28 → 1.0.30

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.
@@ -0,0 +1,22 @@
1
+ export declare const channelSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ name: import("zod").ZodString;
4
+ displayName: import("zod").ZodString;
5
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
6
+ createdAt: import("zod").ZodDate;
7
+ updatedAt: import("zod").ZodDate;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ name: string;
10
+ id: number;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ displayName: string;
14
+ description?: string | null | undefined;
15
+ }, {
16
+ name: string;
17
+ id: number;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ displayName: string;
21
+ description?: string | null | undefined;
22
+ }>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.channelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.channelSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ name: (0, zod_1.string)(),
8
+ displayName: (0, zod_1.string)(),
9
+ description: (0, zod_1.string)().nullish(),
10
+ createdAt: (0, zod_1.date)(),
11
+ updatedAt: (0, zod_1.date)(),
12
+ });
@@ -19,3 +19,5 @@ export * from "./price";
19
19
  export * from "./property-metadata";
20
20
  export * from "./room";
21
21
  export * from "./room-reservation";
22
+ export * from "./channel";
23
+ export * from "./property-channel";
@@ -35,3 +35,5 @@ __exportStar(require("./price"), exports);
35
35
  __exportStar(require("./property-metadata"), exports);
36
36
  __exportStar(require("./room"), exports);
37
37
  __exportStar(require("./room-reservation"), exports);
38
+ __exportStar(require("./channel"), exports);
39
+ __exportStar(require("./property-channel"), exports);
@@ -0,0 +1,25 @@
1
+ export declare const propertyChannelSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ propertyId: import("zod").ZodNumber;
4
+ channelId: import("zod").ZodNumber;
5
+ channexId: import("zod").ZodString;
6
+ status: import("zod").ZodString;
7
+ createdAt: import("zod").ZodDate;
8
+ updatedAt: import("zod").ZodDate;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ id: number;
11
+ status: string;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ propertyId: number;
15
+ channexId: string;
16
+ channelId: number;
17
+ }, {
18
+ id: number;
19
+ status: string;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ propertyId: number;
23
+ channexId: string;
24
+ channelId: number;
25
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.propertyChannelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.propertyChannelSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ propertyId: (0, zod_1.number)().int(),
8
+ channelId: (0, zod_1.number)().int(),
9
+ channexId: (0, zod_1.string)(),
10
+ status: (0, zod_1.string)(),
11
+ createdAt: (0, zod_1.date)(),
12
+ updatedAt: (0, zod_1.date)(),
13
+ });
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { channelSchema } from "../../schemas/channel";
3
+ import { Property } from "../property";
4
+ export interface Channel extends infer<typeof channelSchema> {
5
+ properties?: Property[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,3 +18,5 @@ export * from "./price";
18
18
  export * from "./property-metadata";
19
19
  export * from "./room";
20
20
  export * from "./room-reservation";
21
+ export * from "./channel";
22
+ export * from "./property-channel";
@@ -34,3 +34,5 @@ __exportStar(require("./price"), exports);
34
34
  __exportStar(require("./property-metadata"), exports);
35
35
  __exportStar(require("./room"), exports);
36
36
  __exportStar(require("./room-reservation"), exports);
37
+ __exportStar(require("./channel"), exports);
38
+ __exportStar(require("./property-channel"), exports);
@@ -9,6 +9,7 @@ import { Address } from "../address";
9
9
  import { Price } from "../price";
10
10
  import { PropertyMetadata } from "../property-metadata";
11
11
  import { Room } from "../room";
12
+ import { PropertyChannel } from "../property-channel";
12
13
  export interface Property extends infer<typeof propertySchema> {
13
14
  user?: User;
14
15
  rooms?: Room[];
@@ -23,6 +24,7 @@ export interface Property extends infer<typeof propertySchema> {
23
24
  address?: Address;
24
25
  price?: Price;
25
26
  metadata?: PropertyMetadata;
27
+ propertyChannel?: PropertyChannel[];
26
28
  }
27
29
  export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
28
30
  }
@@ -0,0 +1,8 @@
1
+ import { infer } from "zod";
2
+ import { Property } from "../property";
3
+ import { propertyChannelSchema } from "../../schemas/property-channel";
4
+ import { Channel } from "../channel";
5
+ export interface PropertyChannel extends infer<typeof propertyChannelSchema> {
6
+ property?: Property;
7
+ channel?: Channel;
8
+ }
@@ -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.0.28",
4
+ "version": "1.0.30",
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",