hububb-saas-shared 1.0.27 → 1.0.29
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 +3 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/property-channel/index.d.ts +22 -0
- package/dist/schemas/property-channel/index.js +12 -0
- package/dist/schemas/room-reservation/index.d.ts +20 -0
- package/dist/schemas/room-reservation/index.js +11 -0
- package/dist/types/channel/index.d.ts +6 -0
- package/dist/types/channel/index.js +2 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +3 -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/dist/types/reservation/index.d.ts +2 -0
- package/dist/types/room/index.d.ts +2 -0
- package/dist/types/room-reservation/index.d.ts +8 -0
- package/dist/types/room-reservation/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
|
@@ -34,3 +34,6 @@ __exportStar(require("./thread"), exports);
|
|
|
34
34
|
__exportStar(require("./price"), exports);
|
|
35
35
|
__exportStar(require("./property-metadata"), exports);
|
|
36
36
|
__exportStar(require("./room"), exports);
|
|
37
|
+
__exportStar(require("./room-reservation"), exports);
|
|
38
|
+
__exportStar(require("./channel"), exports);
|
|
39
|
+
__exportStar(require("./property-channel"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const propertyChannelSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
propertyId: import("zod").ZodNumber;
|
|
4
|
+
channelId: import("zod").ZodNumber;
|
|
5
|
+
status: import("zod").ZodString;
|
|
6
|
+
createdAt: import("zod").ZodDate;
|
|
7
|
+
updatedAt: import("zod").ZodDate;
|
|
8
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9
|
+
id: number;
|
|
10
|
+
status: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
propertyId: number;
|
|
14
|
+
channelId: number;
|
|
15
|
+
}, {
|
|
16
|
+
id: number;
|
|
17
|
+
status: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
propertyId: number;
|
|
21
|
+
channelId: number;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
status: (0, zod_1.string)(),
|
|
10
|
+
createdAt: (0, zod_1.date)(),
|
|
11
|
+
updatedAt: (0, zod_1.date)(),
|
|
12
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ReservationRoomSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
roomId: z.ZodNumber;
|
|
5
|
+
reservationId: z.ZodNumber;
|
|
6
|
+
createdAt: z.ZodDate;
|
|
7
|
+
updatedAt: z.ZodDate;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id: number;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
roomId: number;
|
|
13
|
+
reservationId: number;
|
|
14
|
+
}, {
|
|
15
|
+
id: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
roomId: number;
|
|
19
|
+
reservationId: number;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReservationRoomSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ReservationRoomSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.number(),
|
|
7
|
+
roomId: zod_1.z.number(),
|
|
8
|
+
reservationId: zod_1.z.number(),
|
|
9
|
+
createdAt: zod_1.z.date(),
|
|
10
|
+
updatedAt: zod_1.z.date(),
|
|
11
|
+
});
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -33,3 +33,6 @@ __exportStar(require("./thread"), exports);
|
|
|
33
33
|
__exportStar(require("./price"), exports);
|
|
34
34
|
__exportStar(require("./property-metadata"), exports);
|
|
35
35
|
__exportStar(require("./room"), exports);
|
|
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
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { infer } from "zod";
|
|
2
2
|
import { Property } from "../property";
|
|
3
3
|
import { ReservationCustomerSchema, ReservationSchema, ReservationServiceSchema } from "../../schemas";
|
|
4
|
+
import { ReservationRoom } from "../room-reservation";
|
|
4
5
|
export interface Reservation extends infer<typeof ReservationSchema> {
|
|
5
6
|
property?: Property;
|
|
6
7
|
customer?: ReservationCustomer;
|
|
7
8
|
reservationServices?: ReservationService[];
|
|
9
|
+
reservationRooms?: ReservationRoom[];
|
|
8
10
|
}
|
|
9
11
|
export interface ReservationService extends infer<typeof ReservationServiceSchema> {
|
|
10
12
|
reservation?: Reservation;
|
|
@@ -2,7 +2,9 @@ import { infer } from "zod";
|
|
|
2
2
|
import { Property } from "../property";
|
|
3
3
|
import { roomSchema } from "../../schemas/room";
|
|
4
4
|
import { RatePlan } from "../rate-plan";
|
|
5
|
+
import { ReservationRoom } from "../room-reservation";
|
|
5
6
|
export interface Room extends infer<typeof roomSchema> {
|
|
6
7
|
ratePlans?: RatePlan[];
|
|
7
8
|
property?: Property;
|
|
9
|
+
reservationRooms?: ReservationRoom[];
|
|
8
10
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { Room } from "../room";
|
|
3
|
+
import { Reservation } from "../reservation";
|
|
4
|
+
import { ReservationRoomSchema } from "../../schemas";
|
|
5
|
+
export interface ReservationRoom extends infer<typeof ReservationRoomSchema> {
|
|
6
|
+
room?: Room;
|
|
7
|
+
reservation?: Reservation;
|
|
8
|
+
}
|