hububb-models 1.0.115 → 1.0.117
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.
@@ -262,10 +262,10 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
262
262
|
ota_reservation_code: string;
|
263
263
|
raw_message: string;
|
264
264
|
revision_id: string;
|
265
|
+
notes?: string | null | undefined;
|
265
266
|
agent?: string | null | undefined;
|
266
267
|
arrival_hour?: string | null | undefined;
|
267
268
|
guarantee?: {} | null | undefined;
|
268
|
-
notes?: string | null | undefined;
|
269
269
|
secondary_ota?: string | null | undefined;
|
270
270
|
}, {
|
271
271
|
id: string;
|
@@ -339,10 +339,10 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
339
339
|
ota_reservation_code: string;
|
340
340
|
raw_message: string;
|
341
341
|
revision_id: string;
|
342
|
+
notes?: string | null | undefined;
|
342
343
|
agent?: string | null | undefined;
|
343
344
|
arrival_hour?: string | null | undefined;
|
344
345
|
guarantee?: {} | null | undefined;
|
345
|
-
notes?: string | null | undefined;
|
346
346
|
secondary_ota?: string | null | undefined;
|
347
347
|
}>;
|
348
348
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -420,10 +420,10 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
420
420
|
ota_reservation_code: string;
|
421
421
|
raw_message: string;
|
422
422
|
revision_id: string;
|
423
|
+
notes?: string | null | undefined;
|
423
424
|
agent?: string | null | undefined;
|
424
425
|
arrival_hour?: string | null | undefined;
|
425
426
|
guarantee?: {} | null | undefined;
|
426
|
-
notes?: string | null | undefined;
|
427
427
|
secondary_ota?: string | null | undefined;
|
428
428
|
};
|
429
429
|
}, {
|
@@ -501,10 +501,10 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
501
501
|
ota_reservation_code: string;
|
502
502
|
raw_message: string;
|
503
503
|
revision_id: string;
|
504
|
+
notes?: string | null | undefined;
|
504
505
|
agent?: string | null | undefined;
|
505
506
|
arrival_hour?: string | null | undefined;
|
506
507
|
guarantee?: {} | null | undefined;
|
507
|
-
notes?: string | null | undefined;
|
508
508
|
secondary_ota?: string | null | undefined;
|
509
509
|
};
|
510
510
|
}>;
|
@@ -18,6 +18,12 @@ export declare const landlordAnalytics: import("zod").ZodObject<{
|
|
18
18
|
occupancyRateByMonth: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
|
19
19
|
currentReservations: import("zod").ZodNumber;
|
20
20
|
upcomingReservations: import("zod").ZodNumber;
|
21
|
+
averageGuestsPerReservation: import("zod").ZodNumber;
|
22
|
+
averageLengthOfStay: import("zod").ZodNumber;
|
23
|
+
cancellationRate: import("zod").ZodNumber;
|
24
|
+
revenuePerNight: import("zod").ZodNumber;
|
25
|
+
totalGuests: import("zod").ZodNumber;
|
26
|
+
revenueBySource: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
|
21
27
|
}, "strip", import("zod").ZodTypeAny, {
|
22
28
|
totalRevenue: number;
|
23
29
|
seasonalTrends: {};
|
@@ -32,6 +38,12 @@ export declare const landlordAnalytics: import("zod").ZodObject<{
|
|
32
38
|
occupancyRateByMonth: {};
|
33
39
|
currentReservations: number;
|
34
40
|
upcomingReservations: number;
|
41
|
+
averageGuestsPerReservation: number;
|
42
|
+
averageLengthOfStay: number;
|
43
|
+
cancellationRate: number;
|
44
|
+
revenuePerNight: number;
|
45
|
+
totalGuests: number;
|
46
|
+
revenueBySource: {};
|
35
47
|
}, {
|
36
48
|
totalRevenue: number;
|
37
49
|
seasonalTrends: {};
|
@@ -46,4 +58,10 @@ export declare const landlordAnalytics: import("zod").ZodObject<{
|
|
46
58
|
occupancyRateByMonth: {};
|
47
59
|
currentReservations: number;
|
48
60
|
upcomingReservations: number;
|
61
|
+
averageGuestsPerReservation: number;
|
62
|
+
averageLengthOfStay: number;
|
63
|
+
cancellationRate: number;
|
64
|
+
revenuePerNight: number;
|
65
|
+
totalGuests: number;
|
66
|
+
revenueBySource: {};
|
49
67
|
}>;
|
package/dist/schemas/landlord.js
CHANGED
@@ -16,4 +16,10 @@ exports.landlordAnalytics = (0, zod_1.object)({
|
|
16
16
|
occupancyRateByMonth: (0, zod_1.object)({}),
|
17
17
|
currentReservations: (0, zod_1.number)(),
|
18
18
|
upcomingReservations: (0, zod_1.number)(),
|
19
|
+
averageGuestsPerReservation: (0, zod_1.number)(),
|
20
|
+
averageLengthOfStay: (0, zod_1.number)(),
|
21
|
+
cancellationRate: (0, zod_1.number)(),
|
22
|
+
revenuePerNight: (0, zod_1.number)(),
|
23
|
+
totalGuests: (0, zod_1.number)(),
|
24
|
+
revenueBySource: (0, zod_1.object)({}),
|
19
25
|
});
|
@@ -81,6 +81,7 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
81
81
|
checkedInMark: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
|
82
82
|
checkedOutMark: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
|
83
83
|
channexThreadId: import("zod").ZodOptional<import("zod").ZodString>;
|
84
|
+
notes: import("zod").ZodOptional<import("zod").ZodString>;
|
84
85
|
}, "strip", import("zod").ZodTypeAny, {
|
85
86
|
id: string;
|
86
87
|
source?: string | undefined;
|
@@ -124,6 +125,7 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
124
125
|
checkedInMark?: import("@firebase/firestore-types").Timestamp | undefined;
|
125
126
|
checkedOutMark?: import("@firebase/firestore-types").Timestamp | undefined;
|
126
127
|
channexThreadId?: string | undefined;
|
128
|
+
notes?: string | undefined;
|
127
129
|
}, {
|
128
130
|
id: string;
|
129
131
|
source?: string | undefined;
|
@@ -167,6 +169,7 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
167
169
|
checkedInMark?: import("@firebase/firestore-types").Timestamp | undefined;
|
168
170
|
checkedOutMark?: import("@firebase/firestore-types").Timestamp | undefined;
|
169
171
|
channexThreadId?: string | undefined;
|
172
|
+
notes?: string | undefined;
|
170
173
|
}>;
|
171
174
|
export declare const reservationCreateSchema: import("zod").ZodObject<{
|
172
175
|
booker: import("zod").ZodObject<{
|
@@ -49,6 +49,7 @@ exports.ReservationSchema = (0, zod_1.object)({
|
|
49
49
|
checkedInMark: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
|
50
50
|
checkedOutMark: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
|
51
51
|
channexThreadId: (0, zod_1.optional)((0, zod_1.string)()),
|
52
|
+
notes: (0, zod_1.optional)((0, zod_1.string)()),
|
52
53
|
});
|
53
54
|
const bookerSchema = (0, zod_1.object)({
|
54
55
|
firstName: (0, zod_1.string)().min(1, "First name is required"),
|