hububb-saas-shared 1.0.30 → 1.0.31
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-mapping/index.d.ts +37 -0
- package/dist/schemas/channel-mapping/index.js +17 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/property/index.d.ts +4 -7
- package/dist/schemas/property/index.js +0 -1
- package/dist/schemas/property-channel/index.d.ts +3 -0
- package/dist/schemas/property-channel/index.js +1 -0
- package/dist/types/channel-mapping/index.d.ts +6 -0
- package/dist/types/channel-mapping/index.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/property-channel/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const channelMappingSchema: import("zod").ZodObject<{
|
|
2
|
+
id: import("zod").ZodNumber;
|
|
3
|
+
ratePlanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
4
|
+
otaRatePlanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
5
|
+
roomId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
6
|
+
otaRoomId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
7
|
+
occupancy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
8
|
+
otaRoomTitle: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
9
|
+
otaRatePlanTitle: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
|
+
propertyChannelId: import("zod").ZodNumber;
|
|
11
|
+
createdAt: import("zod").ZodDate;
|
|
12
|
+
updatedAt: import("zod").ZodDate;
|
|
13
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
14
|
+
id: number;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
propertyChannelId: number;
|
|
18
|
+
roomId?: number | null | undefined;
|
|
19
|
+
occupancy?: number | null | undefined;
|
|
20
|
+
ratePlanId?: number | null | undefined;
|
|
21
|
+
otaRatePlanId?: string | null | undefined;
|
|
22
|
+
otaRoomId?: string | null | undefined;
|
|
23
|
+
otaRoomTitle?: string | null | undefined;
|
|
24
|
+
otaRatePlanTitle?: string | null | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
id: number;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
propertyChannelId: number;
|
|
30
|
+
roomId?: number | null | undefined;
|
|
31
|
+
occupancy?: number | null | undefined;
|
|
32
|
+
ratePlanId?: number | null | undefined;
|
|
33
|
+
otaRatePlanId?: string | null | undefined;
|
|
34
|
+
otaRoomId?: string | null | undefined;
|
|
35
|
+
otaRoomTitle?: string | null | undefined;
|
|
36
|
+
otaRatePlanTitle?: string | null | undefined;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.channelMappingSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.channelMappingSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.number)().int(),
|
|
7
|
+
ratePlanId: (0, zod_1.number)().int().nullish(),
|
|
8
|
+
otaRatePlanId: (0, zod_1.string)().nullish(),
|
|
9
|
+
roomId: (0, zod_1.number)().int().nullish(),
|
|
10
|
+
otaRoomId: (0, zod_1.string)().nullish(),
|
|
11
|
+
occupancy: (0, zod_1.number)().int().nullish(),
|
|
12
|
+
otaRoomTitle: (0, zod_1.string)().nullish(),
|
|
13
|
+
otaRatePlanTitle: (0, zod_1.string)().nullish(),
|
|
14
|
+
propertyChannelId: (0, zod_1.number)().int(),
|
|
15
|
+
createdAt: (0, zod_1.date)(),
|
|
16
|
+
updatedAt: (0, zod_1.date)(),
|
|
17
|
+
});
|
package/dist/schemas/index.d.ts
CHANGED
package/dist/schemas/index.js
CHANGED
|
@@ -15,7 +15,6 @@ export declare const propertySchema: import("zod").ZodObject<{
|
|
|
15
15
|
checkInTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
16
16
|
checkOutTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
17
17
|
channexId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
18
|
-
airbnbId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
19
18
|
hububbId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
20
19
|
channexRoomTypeId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
21
20
|
minimumNights: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
@@ -39,7 +38,6 @@ export declare const propertySchema: import("zod").ZodObject<{
|
|
|
39
38
|
checkInTime?: string | null | undefined;
|
|
40
39
|
checkOutTime?: string | null | undefined;
|
|
41
40
|
channexId?: string | null | undefined;
|
|
42
|
-
airbnbId?: string | null | undefined;
|
|
43
41
|
hububbId?: string | null | undefined;
|
|
44
42
|
channexRoomTypeId?: string | null | undefined;
|
|
45
43
|
minimumNights?: number | null | undefined;
|
|
@@ -62,7 +60,6 @@ export declare const propertySchema: import("zod").ZodObject<{
|
|
|
62
60
|
checkInTime?: string | null | undefined;
|
|
63
61
|
checkOutTime?: string | null | undefined;
|
|
64
62
|
channexId?: string | null | undefined;
|
|
65
|
-
airbnbId?: string | null | undefined;
|
|
66
63
|
hububbId?: string | null | undefined;
|
|
67
64
|
channexRoomTypeId?: string | null | undefined;
|
|
68
65
|
minimumNights?: number | null | undefined;
|
|
@@ -101,10 +98,10 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
|
|
|
101
98
|
checkInTime?: string | undefined;
|
|
102
99
|
checkOutTime?: string | undefined;
|
|
103
100
|
channexId?: string | undefined;
|
|
104
|
-
airbnbId?: string | undefined;
|
|
105
101
|
channexRoomTypeId?: string | undefined;
|
|
106
102
|
minimumNights?: number | undefined;
|
|
107
103
|
maximumNights?: number | undefined;
|
|
104
|
+
airbnbId?: string | undefined;
|
|
108
105
|
}, {
|
|
109
106
|
area?: number | undefined;
|
|
110
107
|
title?: string | undefined;
|
|
@@ -119,10 +116,10 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
|
|
|
119
116
|
checkInTime?: string | undefined;
|
|
120
117
|
checkOutTime?: string | undefined;
|
|
121
118
|
channexId?: string | undefined;
|
|
122
|
-
airbnbId?: string | undefined;
|
|
123
119
|
channexRoomTypeId?: string | undefined;
|
|
124
120
|
minimumNights?: number | undefined;
|
|
125
121
|
maximumNights?: number | undefined;
|
|
122
|
+
airbnbId?: string | undefined;
|
|
126
123
|
}>>;
|
|
127
124
|
metadata: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
128
125
|
wifiName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -242,10 +239,10 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
|
|
|
242
239
|
checkInTime?: string | undefined;
|
|
243
240
|
checkOutTime?: string | undefined;
|
|
244
241
|
channexId?: string | undefined;
|
|
245
|
-
airbnbId?: string | undefined;
|
|
246
242
|
channexRoomTypeId?: string | undefined;
|
|
247
243
|
minimumNights?: number | undefined;
|
|
248
244
|
maximumNights?: number | undefined;
|
|
245
|
+
airbnbId?: string | undefined;
|
|
249
246
|
} | undefined;
|
|
250
247
|
amenities?: number[] | undefined;
|
|
251
248
|
}, {
|
|
@@ -290,10 +287,10 @@ export declare const updatePropertySchema: import("zod").ZodObject<{
|
|
|
290
287
|
checkInTime?: string | undefined;
|
|
291
288
|
checkOutTime?: string | undefined;
|
|
292
289
|
channexId?: string | undefined;
|
|
293
|
-
airbnbId?: string | undefined;
|
|
294
290
|
channexRoomTypeId?: string | undefined;
|
|
295
291
|
minimumNights?: number | undefined;
|
|
296
292
|
maximumNights?: number | undefined;
|
|
293
|
+
airbnbId?: string | undefined;
|
|
297
294
|
} | undefined;
|
|
298
295
|
amenities?: number[] | undefined;
|
|
299
296
|
}>;
|
|
@@ -19,7 +19,6 @@ exports.propertySchema = (0, zod_1.object)({
|
|
|
19
19
|
checkInTime: (0, zod_1.string)().nullish(),
|
|
20
20
|
checkOutTime: (0, zod_1.string)().nullish(),
|
|
21
21
|
channexId: (0, zod_1.string)().nullish(),
|
|
22
|
-
airbnbId: (0, zod_1.string)().nullish(),
|
|
23
22
|
hububbId: (0, zod_1.string)().nullish(),
|
|
24
23
|
channexRoomTypeId: (0, zod_1.string)().nullish(),
|
|
25
24
|
minimumNights: (0, zod_1.number)().int().nullish(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const propertyChannelSchema: import("zod").ZodObject<{
|
|
2
2
|
id: import("zod").ZodNumber;
|
|
3
|
+
otaId: import("zod").ZodString;
|
|
3
4
|
propertyId: import("zod").ZodNumber;
|
|
4
5
|
channelId: import("zod").ZodNumber;
|
|
5
6
|
channexId: import("zod").ZodString;
|
|
@@ -14,6 +15,7 @@ export declare const propertyChannelSchema: import("zod").ZodObject<{
|
|
|
14
15
|
propertyId: number;
|
|
15
16
|
channexId: string;
|
|
16
17
|
channelId: number;
|
|
18
|
+
otaId: string;
|
|
17
19
|
}, {
|
|
18
20
|
id: number;
|
|
19
21
|
status: string;
|
|
@@ -22,4 +24,5 @@ export declare const propertyChannelSchema: import("zod").ZodObject<{
|
|
|
22
24
|
propertyId: number;
|
|
23
25
|
channexId: string;
|
|
24
26
|
channelId: number;
|
|
27
|
+
otaId: string;
|
|
25
28
|
}>;
|
|
@@ -4,6 +4,7 @@ exports.propertyChannelSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.propertyChannelSchema = (0, zod_1.object)({
|
|
6
6
|
id: (0, zod_1.number)().int(),
|
|
7
|
+
otaId: (0, zod_1.string)(),
|
|
7
8
|
propertyId: (0, zod_1.number)().int(),
|
|
8
9
|
channelId: (0, zod_1.number)().int(),
|
|
9
10
|
channexId: (0, zod_1.string)(),
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { channelMappingSchema } from "../../schemas/channel-mapping";
|
|
3
|
+
import { PropertyChannel } from "../property-channel";
|
|
4
|
+
export interface ChannelMapping extends infer<typeof channelMappingSchema> {
|
|
5
|
+
propertyChannel?: PropertyChannel;
|
|
6
|
+
}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -2,7 +2,9 @@ import { infer } from "zod";
|
|
|
2
2
|
import { Property } from "../property";
|
|
3
3
|
import { propertyChannelSchema } from "../../schemas/property-channel";
|
|
4
4
|
import { Channel } from "../channel";
|
|
5
|
+
import { ChannelMapping } from "../channel-mapping";
|
|
5
6
|
export interface PropertyChannel extends infer<typeof propertyChannelSchema> {
|
|
6
7
|
property?: Property;
|
|
7
8
|
channel?: Channel;
|
|
9
|
+
channelMappings?: ChannelMapping[];
|
|
8
10
|
}
|