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.
- package/dist/schemas/channel/index.d.ts +22 -0
- package/dist/schemas/channel/index.js +12 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/property-channel/index.d.ts +25 -0
- package/dist/schemas/property-channel/index.js +13 -0
- package/dist/types/channel/index.d.ts +6 -0
- package/dist/types/channel/index.js +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/property/index.d.ts +2 -0
- package/dist/types/property-channel/index.d.ts +8 -0
- package/dist/types/property-channel/index.js +2 -0
- package/package.json +1 -1
|
@@ -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
|
+
});
|
package/dist/schemas/index.d.ts
CHANGED
package/dist/schemas/index.js
CHANGED
|
@@ -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
|
+
});
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -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
|
+
}
|